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

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

Issue 1893243002: X87: [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: 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 | « no previous file | src/x87/builtins-x87.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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0)); 499 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0));
500 __ jmp(code, RelocInfo::CODE_TARGET); 500 __ jmp(code, RelocInfo::CODE_TARGET);
501 } else { 501 } else {
502 Register reg = i.InputRegister(0); 502 Register reg = i.InputRegister(0);
503 __ add(reg, Immediate(Code::kHeaderSize - kHeapObjectTag)); 503 __ add(reg, Immediate(Code::kHeaderSize - kHeapObjectTag));
504 __ jmp(reg); 504 __ jmp(reg);
505 } 505 }
506 frame_access_state()->ClearSPDelta(); 506 frame_access_state()->ClearSPDelta();
507 break; 507 break;
508 } 508 }
509 case kArchTailCallAddress: {
510 int stack_param_delta = i.InputInt32(instr->InputCount() - 1);
511 AssembleDeconstructActivationRecord(stack_param_delta);
512 CHECK(!HasImmediateInput(instr, 0));
513 Register reg = i.InputRegister(0);
514 __ jmp(reg);
515 frame_access_state()->ClearSPDelta();
516 break;
517 }
509 case kArchCallJSFunction: { 518 case kArchCallJSFunction: {
510 EnsureSpaceForLazyDeopt(); 519 EnsureSpaceForLazyDeopt();
511 Register func = i.InputRegister(0); 520 Register func = i.InputRegister(0);
512 if (FLAG_debug_code) { 521 if (FLAG_debug_code) {
513 // Check the function's context matches the context argument. 522 // Check the function's context matches the context argument.
514 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset)); 523 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset));
515 __ Assert(equal, kWrongFunctionContext); 524 __ Assert(equal, kWrongFunctionContext);
516 } 525 }
517 if (FLAG_debug_code && FLAG_enable_slow_asserts) { 526 if (FLAG_debug_code && FLAG_enable_slow_asserts) {
518 __ VerifyX87StackDepth(1); 527 __ VerifyX87StackDepth(1);
(...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
2444 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2453 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2445 __ Nop(padding_size); 2454 __ Nop(padding_size);
2446 } 2455 }
2447 } 2456 }
2448 2457
2449 #undef __ 2458 #undef __
2450 2459
2451 } // namespace compiler 2460 } // namespace compiler
2452 } // namespace internal 2461 } // namespace internal
2453 } // namespace v8 2462 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/x87/builtins-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698