enclose-io/compiler

View on GitHub
lts/deps/v8/tools/tickprocessor.js

Summary

Maintainability
F
1 mo
Test Coverage

File tickprocessor.js has 737 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
Severity: Major
Found in lts/deps/v8/tools/tickprocessor.js - About 1 day to fix

    Function TickProcessor has 96 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function TickProcessor(
        cppEntriesProvider,
        separateIc,
        separateBytecodes,
        separateBuiltins,
    Severity: Major
    Found in lts/deps/v8/tools/tickprocessor.js - About 3 hrs to fix

      Function parseVmSymbols has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
      Open

      CppEntriesProvider.prototype.parseVmSymbols = function(
          libName, libStart, libEnd, libASLRSlide, processorFunc) {
        this.loadSymbols(libName);
      
        var lastUnknownSize;
      Severity: Minor
      Found in lts/deps/v8/tools/tickprocessor.js - About 3 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function printStatistics has 64 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      TickProcessor.prototype.printStatistics = function() {
        if (this.preprocessJson) {
          this.profile_.writeJson();
          return;
        }
      Severity: Major
      Found in lts/deps/v8/tools/tickprocessor.js - About 2 hrs to fix

        Function getArgsDispatch has 63 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          getArgsDispatch() {
            let dispatch = {
              '-j': ['stateFilter', TickProcessor.VmStates.JS,
                  'Show only ticks from JS VM state'],
              '-g': ['stateFilter', TickProcessor.VmStates.GC,
        Severity: Major
        Found in lts/deps/v8/tools/tickprocessor.js - About 2 hrs to fix

          Function TickProcessor has 16 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              cppEntriesProvider,
              separateIc,
              separateBytecodes,
              separateBuiltins,
              separateStubs,
          Severity: Major
          Found in lts/deps/v8/tools/tickprocessor.js - About 2 hrs to fix

            Function parseVmSymbols has 48 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            CppEntriesProvider.prototype.parseVmSymbols = function(
                libName, libStart, libEnd, libASLRSlide, processorFunc) {
              this.loadSymbols(libName);
            
              var lastUnknownSize;
            Severity: Minor
            Found in lts/deps/v8/tools/tickprocessor.js - About 1 hr to fix

              Function V8Profile has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
              Open

              function V8Profile(separateIc, separateBytecodes, separateBuiltins,
                  separateStubs) {
                Profile.call(this);
                var regexps = [];
                if (!separateIc) regexps.push(V8Profile.IC_RE);
              Severity: Minor
              Found in lts/deps/v8/tools/tickprocessor.js - About 1 hr to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function TickProcessor has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
              Open

              function TickProcessor(
                  cppEntriesProvider,
                  separateIc,
                  separateBytecodes,
                  separateBuiltins,
              Severity: Minor
              Found in lts/deps/v8/tools/tickprocessor.js - About 1 hr to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function printStatistics has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
              Open

              TickProcessor.prototype.printStatistics = function() {
                if (this.preprocessJson) {
                  this.profile_.writeJson();
                  return;
                }
              Severity: Minor
              Found in lts/deps/v8/tools/tickprocessor.js - About 1 hr to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function processCodeDeopt has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  timestamp, size, code, inliningId, scriptOffset, bailoutType,
                  sourcePositionText, deoptReasonText) {
              Severity: Major
              Found in lts/deps/v8/tools/tickprocessor.js - About 1 hr to fix

                Function processCodeSourceInfo has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    start, script, startPos, endPos, sourcePositions, inliningPositions,
                    inlinedFunctions) {
                Severity: Major
                Found in lts/deps/v8/tools/tickprocessor.js - About 50 mins to fix

                  Function processCodeCreation has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      type, kind, timestamp, start, size, name, maybe_func) {
                  Severity: Major
                  Found in lts/deps/v8/tools/tickprocessor.js - About 50 mins to fix

                    Function processTick has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                    TickProcessor.prototype.processTick = function(pc,
                                                                   ns_since_start,
                                                                   is_external_callback,
                                                                   tos_or_external_callback,
                                                                   vmState,
                    Severity: Minor
                    Found in lts/deps/v8/tools/tickprocessor.js - About 45 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function printEntries has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        profile, totalTicks, nonLibTicks, filterP, callback, printAllTicks) {
                    Severity: Minor
                    Found in lts/deps/v8/tools/tickprocessor.js - About 45 mins to fix

                      Function processTick has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      TickProcessor.prototype.processTick = function(pc,
                                                                     ns_since_start,
                                                                     is_external_callback,
                                                                     tos_or_external_callback,
                                                                     vmState,
                      Severity: Minor
                      Found in lts/deps/v8/tools/tickprocessor.js - About 45 mins to fix

                        Function parseVmSymbols has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            libName, libStart, libEnd, libASLRSlide, processorFunc) {
                        Severity: Minor
                        Found in lts/deps/v8/tools/tickprocessor.js - About 35 mins to fix

                          Function parseNextLine has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                          Open

                          UnixCppEntriesProvider.prototype.parseNextLine = function() {
                            if (this.symbols.length == 0) {
                              return false;
                            }
                            var lineEndPos = this.symbols[0].indexOf('\n', this.parsePos);
                          Severity: Minor
                          Found in lts/deps/v8/tools/tickprocessor.js - About 25 mins to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          function TickProcessor(
                              cppEntriesProvider,
                              separateIc,
                              separateBytecodes,
                              separateBuiltins,
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 5 days to fix
                          current/deps/v8/tools/tickprocessor.js on lines 86..212

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 952.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.printStatistics = function() {
                            if (this.preprocessJson) {
                              this.profile_.writeJson();
                              return;
                            }
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 5 days to fix
                          current/deps/v8/tools/tickprocessor.js on lines 424..503

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 929.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          CppEntriesProvider.prototype.parseVmSymbols = function(
                              libName, libStart, libEnd, libASLRSlide, processorFunc) {
                            this.loadSymbols(libName);
                          
                            var lastUnknownSize;
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 2 days to fix
                          current/deps/v8/tools/tickprocessor.js on lines 634..697

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 463.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processTick = function(pc,
                                                                         ns_since_start,
                                                                         is_external_callback,
                                                                         tos_or_external_callback,
                                                                         vmState,
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 1 day to fix
                          current/deps/v8/tools/tickprocessor.js on lines 356..392

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 275.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.printHeavyProfile = function(profile, opt_indent) {
                            var self = this;
                            var indent = opt_indent || 0;
                            var indentStr = padLeft('', indent);
                            this.processProfile(profile, function() { return true; }, function (rec) {
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 1 day to fix
                          current/deps/v8/tools/tickprocessor.js on lines 607..627

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 239.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 2 locations. Consider refactoring.
                          Open

                          WindowsCppEntriesProvider.prototype.parseNextLine = function() {
                            var lineEndPos = this.symbols.indexOf('\r\n', this.parsePos);
                            if (lineEndPos == -1) {
                              return false;
                            }
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 1 day to fix
                          current/deps/v8/tools/tickprocessor.js on lines 840..864

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 239.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processHeapSampleEnd = function(space, state) {
                            if (space != 'Heap' || !this.currentProducerProfile_) return;
                          
                            print('Generation ' + this.generation_ + ':');
                            var tree = this.currentProducerProfile_;
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 1 day to fix
                          current/deps/v8/tools/tickprocessor.js on lines 406..421

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 200.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          function V8Profile(separateIc, separateBytecodes, separateBuiltins,
                              separateStubs) {
                            Profile.call(this);
                            var regexps = [];
                            if (!separateIc) regexps.push(V8Profile.IC_RE);
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 1 day to fix
                          current/deps/v8/tools/tickprocessor.js on lines 33..49

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 196.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.formatFunctionName = function(funcName) {
                            if (!this.hasSourceMap()) {
                              return funcName;
                            }
                            var lc = this.getLineAndColumn(funcName);
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 7 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 574..591

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 191.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          WindowsCppEntriesProvider.prototype.loadSymbols = function(libName) {
                            libName = this.targetRootFS + libName;
                            var fileNameFields = libName.match(WindowsCppEntriesProvider.FILENAME_RE);
                            if (!fileNameFields) return;
                            var mapFileName = fileNameFields[1] + '.map';
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 5 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 825..837

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 141.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processSharedLibrary = function(
                              name, startAddr, endAddr, aslrSlide) {
                            var entry = this.profile_.addLibrary(name, startAddr, endAddr, aslrSlide);
                            this.setCodeType(entry.getName(), 'SHARED_LIB');
                          
                          
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 4 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 285..296

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 132.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.printLine = function(
                              entry, ticks, totalTicks, nonLibTicks) {
                            var pct = ticks * 100 / totalTicks;
                            var nonLibPct = nonLibTicks != null
                                ? padLeft((ticks * 100 / nonLibTicks).toFixed(1), 5) + '%  '
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 4 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 525..535

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 130.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          MacCppEntriesProvider.prototype.loadSymbols = function(libName) {
                            this.parsePos = 0;
                            libName = this.targetRootFS + libName;
                          
                            // It seems that in OS X `nm` thinks that `-f` is a format option, not a
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 4 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 786..798

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 116.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.printEntries = function(
                              profile, totalTicks, nonLibTicks, filterP, callback, printAllTicks) {
                            var that = this;
                            this.processProfile(profile, filterP, function (rec) {
                              if (rec.selfTime == 0) return;
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 4 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 593..604

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 116.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          WindowsCppEntriesProvider.prototype.unmangleName = function(name) {
                            // Empty or non-mangled name.
                            if (name.length < 1 || name.charAt(0) != '?') return name;
                            var nameEndPos = name.indexOf('@@');
                            var components = name.substring(1, nameEndPos).split('@');
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 4 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 875..882

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 116.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          function padLeft(s, len) {
                            s = s.toString();
                            if (s.length < len) {
                              var padLength = len - s.length;
                              if (!(padLength in padLeft)) {
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 3 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 506..516

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 112.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 4 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processCodeCreation = function(
                              type, kind, timestamp, start, size, name, maybe_func) {
                            if (maybe_func.length) {
                              var funcAddr = parseInt(maybe_func[0]);
                              var state = parseState(maybe_func[1]);
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 3 other locations - About 3 hrs to fix
                          current/deps/v8/tools/ic-processor.js on lines 128..137
                          current/deps/v8/tools/tickprocessor.js on lines 299..308
                          lts/deps/v8/tools/ic-processor.js on lines 128..137

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 112.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processProfile = function(
                              profile, filterP, func) {
                            for (var i = 0, n = profile.length; i < n; ++i) {
                              var rec = profile[i];
                              if (!filterP(rec.internalFuncName)) {
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 2 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 549..558

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 91.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.includeTick = function(vmState) {
                            if (this.stateFilter_ !== null) {
                              return this.stateFilter_ == vmState;
                            } else if (this.runtimeTimerFilter_ !== null) {
                              return this.currentRuntimeTimer == this.runtimeTimerFilter_;
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 2 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 343..350

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 81.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.getLineAndColumn = function(name) {
                            var re = /:([0-9]+):([0-9]+)$/;
                            var array = re.exec(name);
                            if (!array) {
                              return null;
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 2 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 560..567

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 77.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.printHeavyProfHeader = function() {
                            print('\n [Bottom up (heavy) profile]:');
                            print('  Note: percentage shows a share of a particular caller in the ' +
                                  'total\n' +
                                  '  amount of its parent calls.');
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 2 hrs to fix
                          current/deps/v8/tools/tickprocessor.js on lines 537..546

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 76.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 4 locations. Consider refactoring.
                          Open

                          function parseState(s) {
                            switch (s) {
                            case "": return Profile.CodeState.COMPILED;
                            case "~": return Profile.CodeState.OPTIMIZABLE;
                            case "*": return Profile.CodeState.OPTIMIZED;
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 3 other locations - About 1 hr to fix
                          current/deps/v8/tools/ic-processor.js on lines 24..31
                          current/deps/v8/tools/tickprocessor.js on lines 76..83
                          lts/deps/v8/tools/ic-processor.js on lines 24..31

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 71.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                              this.symbols = [
                                os.system(this.nmExec, ['-C', '-n', '-S', libName], -1, -1),
                                os.system(this.nmExec, ['-C', '-n', '-S', '-D', libName], -1, -1)
                              ];
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 1 hr to fix
                          current/deps/v8/tools/tickprocessor.js on lines 734..737

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 63.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 4 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processLogFile = function(fileName) {
                            this.lastLogFileName_ = fileName;
                            var line;
                            while (line = readline()) {
                              this.processLogLine(line);
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 3 other locations - About 1 hr to fix
                          current/deps/v8/tools/dumpcpp.js on lines 24..30
                          current/deps/v8/tools/tickprocessor.js on lines 268..274
                          lts/deps/v8/tools/dumpcpp.js on lines 24..30

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 62.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 4 locations. Consider refactoring.
                          Open

                          function readFile(fileName) {
                            try {
                              return read(fileName);
                            } catch (e) {
                              printErr(fileName + ': ' + (e.message || e));
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 3 other locations - About 1 hr to fix
                          current/deps/v8/tools/ic-processor.js on lines 12..19
                          current/deps/v8/tools/tickprocessor.js on lines 63..70
                          lts/deps/v8/tools/ic-processor.js on lines 12..19

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 60.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Similar blocks of code found in 4 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processLogFileInTest = function(fileName) {
                             // Hack file name to avoid dealing with platform specifics.
                            this.lastLogFileName_ = 'v8.log';
                            var contents = readFile(fileName);
                            this.processLogChunk(contents);
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 3 other locations - About 1 hr to fix
                          current/deps/v8/tools/dumpcpp.js on lines 32..37
                          current/deps/v8/tools/tickprocessor.js on lines 277..282
                          lts/deps/v8/tools/dumpcpp.js on lines 32..37

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 56.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          function inherits(childCtor, parentCtor) {
                            childCtor.prototype.__proto__ = parentCtor.prototype;
                          };
                          Severity: Major
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 1 hr to fix
                          current/deps/v8/tools/tickprocessor.js on lines 28..30

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 56.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                            if (this.targetRootFS) {
                              libName = libName.substring(libName.lastIndexOf('/') + 1);
                              libName = this.targetRootFS + libName;
                            }
                          Severity: Minor
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 55 mins to fix
                          current/deps/v8/tools/tickprocessor.js on lines 729..732

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 53.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.VmStates = {
                            JS: 0,
                            GC: 1,
                            PARSER: 2,
                            BYTECODE_COMPILER: 3,
                          Severity: Minor
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 50 mins to fix
                          current/deps/v8/tools/tickprocessor.js on lines 216..225

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 52.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processCodeDeopt = function(
                              timestamp, size, code, inliningId, scriptOffset, bailoutType,
                              sourcePositionText, deoptReasonText) {
                            this.profile_.deoptCode(timestamp, code, inliningId, scriptOffset,
                                bailoutType, sourcePositionText, deoptReasonText);
                          Severity: Minor
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 40 mins to fix
                          current/deps/v8/tools/tickprocessor.js on lines 311..316

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 49.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                            if (lineEndPos == -1) {
                              this.symbols.shift();
                              this.parsePos = 0;
                              return this.parseNextLine();
                            }
                          Severity: Minor
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 40 mins to fix
                          current/deps/v8/tools/tickprocessor.js on lines 758..762

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 48.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processCodeSourceInfo = function(
                              start, script, startPos, endPos, sourcePositions, inliningPositions,
                              inlinedFunctions) {
                            this.profile_.addSourcePositions(start, script, startPos,
                              endPos, sourcePositions, inliningPositions, inlinedFunctions);
                          Severity: Minor
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 40 mins to fix
                          current/deps/v8/tools/tickprocessor.js on lines 327..332

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 48.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.processHeapSampleBegin = function(space, state, ticks) {
                            if (space != 'Heap') return;
                            this.currentProducerProfile_ = new CallTree();
                          };
                          Severity: Minor
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 35 mins to fix
                          current/deps/v8/tools/tickprocessor.js on lines 400..403

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 46.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          Identical blocks of code found in 2 locations. Consider refactoring.
                          Open

                          TickProcessor.prototype.setCodeType = function(name, type) {
                            this.codeTypes_[name] = TickProcessor.CodeTypes[type];
                          };
                          Severity: Minor
                          Found in lts/deps/v8/tools/tickprocessor.js and 1 other location - About 30 mins to fix
                          current/deps/v8/tools/tickprocessor.js on lines 248..250

                          Duplicated Code

                          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                          Tuning

                          This issue has a mass of 45.

                          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                          Refactorings

                          Further Reading

                          There are no issues that match your filters.

                          Category
                          Status