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

Side by Side Diff: src/arm64/lithium-codegen-arm64.cc

Issue 408183003: Express LoadIC extra ic state with LoadIC::State (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/codegen.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 3376 matching lines...) Expand 10 before | Expand all | Expand 10 after
3387 __ Mov(LoadIC::NameRegister(), Operand(instr->name())); 3387 __ Mov(LoadIC::NameRegister(), Operand(instr->name()));
3388 if (FLAG_vector_ics) { 3388 if (FLAG_vector_ics) {
3389 Register vector = ToRegister(instr->temp_vector()); 3389 Register vector = ToRegister(instr->temp_vector());
3390 ASSERT(vector.is(LoadIC::VectorRegister())); 3390 ASSERT(vector.is(LoadIC::VectorRegister()));
3391 __ Mov(vector, instr->hydrogen()->feedback_vector()); 3391 __ Mov(vector, instr->hydrogen()->feedback_vector());
3392 // No need to allocate this register. 3392 // No need to allocate this register.
3393 ASSERT(LoadIC::SlotRegister().is(x0)); 3393 ASSERT(LoadIC::SlotRegister().is(x0));
3394 __ Mov(LoadIC::SlotRegister(), 3394 __ Mov(LoadIC::SlotRegister(),
3395 Smi::FromInt(instr->hydrogen()->slot())); 3395 Smi::FromInt(instr->hydrogen()->slot()));
3396 } 3396 }
3397 ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; 3397 TypeofState mode = instr->for_typeof() ? INSIDE_TYPEOF : NOT_INSIDE_TYPEOF;
3398 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode); 3398 Handle<Code> ic = LoadIC::initialize_stub(isolate(), mode);
3399 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3399 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3400 } 3400 }
3401 3401
3402 3402
3403 MemOperand LCodeGen::PrepareKeyedExternalArrayOperand( 3403 MemOperand LCodeGen::PrepareKeyedExternalArrayOperand(
3404 Register key, 3404 Register key,
3405 Register base, 3405 Register base,
3406 Register scratch, 3406 Register scratch,
3407 bool key_is_smi, 3407 bool key_is_smi,
(...skipping 2646 matching lines...) Expand 10 before | Expand all | Expand 10 after
6054 Handle<ScopeInfo> scope_info = instr->scope_info(); 6054 Handle<ScopeInfo> scope_info = instr->scope_info();
6055 __ Push(scope_info); 6055 __ Push(scope_info);
6056 __ Push(ToRegister(instr->function())); 6056 __ Push(ToRegister(instr->function()));
6057 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6057 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6058 RecordSafepoint(Safepoint::kNoLazyDeopt); 6058 RecordSafepoint(Safepoint::kNoLazyDeopt);
6059 } 6059 }
6060 6060
6061 6061
6062 6062
6063 } } // namespace v8::internal 6063 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698