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

Side by Side Diff: src/compiler/mips/code-generator-mips.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/linkage.cc ('k') | src/compiler/mips64/code-generator-mips64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 if (instr->InputAt(0)->IsImmediate()) { 557 if (instr->InputAt(0)->IsImmediate()) {
558 __ Jump(Handle<Code>::cast(i.InputHeapObject(0)), 558 __ Jump(Handle<Code>::cast(i.InputHeapObject(0)),
559 RelocInfo::CODE_TARGET); 559 RelocInfo::CODE_TARGET);
560 } else { 560 } else {
561 __ addiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag); 561 __ addiu(at, i.InputRegister(0), Code::kHeaderSize - kHeapObjectTag);
562 __ Jump(at); 562 __ Jump(at);
563 } 563 }
564 frame_access_state()->ClearSPDelta(); 564 frame_access_state()->ClearSPDelta();
565 break; 565 break;
566 } 566 }
567 case kArchTailCallAddress: {
568 int stack_param_delta = i.InputInt32(instr->InputCount() - 1);
569 AssembleDeconstructActivationRecord(stack_param_delta);
570 CHECK(!instr->InputAt(0)->IsImmediate());
571 __ Jump(i.InputRegister(0));
572 frame_access_state()->ClearSPDelta();
573 break;
574 }
567 case kArchCallJSFunction: { 575 case kArchCallJSFunction: {
568 EnsureSpaceForLazyDeopt(); 576 EnsureSpaceForLazyDeopt();
569 Register func = i.InputRegister(0); 577 Register func = i.InputRegister(0);
570 if (FLAG_debug_code) { 578 if (FLAG_debug_code) {
571 // Check the function's context matches the context argument. 579 // Check the function's context matches the context argument.
572 __ lw(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset)); 580 __ lw(kScratchReg, FieldMemOperand(func, JSFunction::kContextOffset));
573 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg)); 581 __ Assert(eq, kWrongFunctionContext, cp, Operand(kScratchReg));
574 } 582 }
575 583
576 __ lw(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); 584 __ lw(at, FieldMemOperand(func, JSFunction::kCodeEntryOffset));
(...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1919 padding_size -= v8::internal::Assembler::kInstrSize; 1927 padding_size -= v8::internal::Assembler::kInstrSize;
1920 } 1928 }
1921 } 1929 }
1922 } 1930 }
1923 1931
1924 #undef __ 1932 #undef __
1925 1933
1926 } // namespace compiler 1934 } // namespace compiler
1927 } // namespace internal 1935 } // namespace internal
1928 } // namespace v8 1936 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698