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

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

Issue 1882073002: [Interpreter] Make dispatch table point to code entry instead of code objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix visiting dispatch table. Created 4 years, 8 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/mips64/code-generator-mips64.cc ('k') | src/ia32/builtins-ia32.cc » ('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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0)); 688 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0));
689 __ jmp(code, RelocInfo::CODE_TARGET); 689 __ jmp(code, RelocInfo::CODE_TARGET);
690 } else { 690 } else {
691 Register reg = i.InputRegister(0); 691 Register reg = i.InputRegister(0);
692 __ addp(reg, Immediate(Code::kHeaderSize - kHeapObjectTag)); 692 __ addp(reg, Immediate(Code::kHeaderSize - kHeapObjectTag));
693 __ jmp(reg); 693 __ jmp(reg);
694 } 694 }
695 frame_access_state()->ClearSPDelta(); 695 frame_access_state()->ClearSPDelta();
696 break; 696 break;
697 } 697 }
698 case kArchTailCallAddress: {
699 int stack_param_delta = i.InputInt32(instr->InputCount() - 1);
700 AssembleDeconstructActivationRecord(stack_param_delta);
701 CHECK(!HasImmediateInput(instr, 0));
702 Register reg = i.InputRegister(0);
703 __ jmp(reg);
704 frame_access_state()->ClearSPDelta();
705 break;
706 }
698 case kArchCallJSFunction: { 707 case kArchCallJSFunction: {
699 EnsureSpaceForLazyDeopt(); 708 EnsureSpaceForLazyDeopt();
700 Register func = i.InputRegister(0); 709 Register func = i.InputRegister(0);
701 if (FLAG_debug_code) { 710 if (FLAG_debug_code) {
702 // Check the function's context matches the context argument. 711 // Check the function's context matches the context argument.
703 __ cmpp(rsi, FieldOperand(func, JSFunction::kContextOffset)); 712 __ cmpp(rsi, FieldOperand(func, JSFunction::kContextOffset));
704 __ Assert(equal, kWrongFunctionContext); 713 __ Assert(equal, kWrongFunctionContext);
705 } 714 }
706 __ Call(FieldOperand(func, JSFunction::kCodeEntryOffset)); 715 __ Call(FieldOperand(func, JSFunction::kCodeEntryOffset));
707 frame_access_state()->ClearSPDelta(); 716 frame_access_state()->ClearSPDelta();
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
2260 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2269 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2261 __ Nop(padding_size); 2270 __ Nop(padding_size);
2262 } 2271 }
2263 } 2272 }
2264 2273
2265 #undef __ 2274 #undef __
2266 2275
2267 } // namespace compiler 2276 } // namespace compiler
2268 } // namespace internal 2277 } // namespace internal
2269 } // namespace v8 2278 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698