Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(916)

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 2056503003: [turbofan] Add comments to CodeAssembler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove extraneous change Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | src/compiler/instruction-codes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 } 532 }
533 case kArchJmp: 533 case kArchJmp:
534 AssembleArchJump(i.InputRpo(0)); 534 AssembleArchJump(i.InputRpo(0));
535 break; 535 break;
536 case kArchLookupSwitch: 536 case kArchLookupSwitch:
537 AssembleArchLookupSwitch(instr); 537 AssembleArchLookupSwitch(instr);
538 break; 538 break;
539 case kArchTableSwitch: 539 case kArchTableSwitch:
540 AssembleArchTableSwitch(instr); 540 AssembleArchTableSwitch(instr);
541 break; 541 break;
542 case kArchComment: {
543 Address comment_string = i.InputExternalReference(0).address();
544 __ RecordComment(reinterpret_cast<const char*>(comment_string));
545 break;
546 }
542 case kArchDebugBreak: 547 case kArchDebugBreak:
543 __ int3(); 548 __ int3();
544 break; 549 break;
545 case kArchNop: 550 case kArchNop:
546 case kArchThrowTerminator: 551 case kArchThrowTerminator:
547 // don't emit code for nops. 552 // don't emit code for nops.
548 break; 553 break;
549 case kArchDeoptimize: { 554 case kArchDeoptimize: {
550 int deopt_state_id = 555 int deopt_state_id =
551 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 556 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1957 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1962 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1958 __ Nop(padding_size); 1963 __ Nop(padding_size);
1959 } 1964 }
1960 } 1965 }
1961 1966
1962 #undef __ 1967 #undef __
1963 1968
1964 } // namespace compiler 1969 } // namespace compiler
1965 } // namespace internal 1970 } // namespace internal
1966 } // namespace v8 1971 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.cc ('k') | src/compiler/instruction-codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698