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

Side by Side Diff: src/ic/arm64/handler-compiler-arm64.cc

Issue 496283004: Move "slow handler" compiler code to handler-compiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/ic/arm/ic-arm.cc ('k') | src/ic/arm64/ic-arm64.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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/ic/call-optimization.h" 9 #include "src/ic/call-optimization.h"
10 #include "src/ic/ic-compiler.h" 10 #include "src/ic/ic-compiler.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 __ IncrementCounter( 299 __ IncrementCounter(
300 masm->isolate()->counters()->keyed_load_external_array_slow(), 1, x4, x3); 300 masm->isolate()->counters()->keyed_load_external_array_slow(), 1, x4, x3);
301 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Slow); 301 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Slow);
302 302
303 // Miss case, call the runtime. 303 // Miss case, call the runtime.
304 __ Bind(&miss); 304 __ Bind(&miss);
305 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 305 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
306 } 306 }
307 307
308 308
309 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) {
310 // Push receiver, name and value for runtime call.
311 __ Push(StoreIC::ReceiverRegister(), StoreIC::NameRegister(),
312 StoreIC::ValueRegister());
313
314 // The slow case calls into the runtime to complete the store without causing
315 // an IC miss that would otherwise cause a transition to the generic stub.
316 ExternalReference ref =
317 ExternalReference(IC_Utility(IC::kStoreIC_Slow), masm->isolate());
318 __ TailCallExternalReference(ref, 3, 1);
319 }
320
321
322 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) {
323 ASM_LOCATION("ElementHandlerCompiler::GenerateStoreSlow");
324
325 // Push receiver, key and value for runtime call.
326 __ Push(StoreIC::ReceiverRegister(), StoreIC::NameRegister(),
327 StoreIC::ValueRegister());
328
329 // The slow case calls into the runtime to complete the store without causing
330 // an IC miss that would otherwise cause a transition to the generic stub.
331 ExternalReference ref =
332 ExternalReference(IC_Utility(IC::kKeyedStoreIC_Slow), masm->isolate());
333 __ TailCallExternalReference(ref, 3, 1);
334 }
335
336
309 #undef __ 337 #undef __
310 #define __ ACCESS_MASM(masm()) 338 #define __ ACCESS_MASM(masm())
311 339
312 340
313 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( 341 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal(
314 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { 342 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) {
315 Label miss; 343 Label miss;
316 FrontendHeader(receiver(), name, &miss); 344 FrontendHeader(receiver(), name, &miss);
317 345
318 // Get the value from the cell. 346 // Get the value from the cell.
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 // Return the generated code. 863 // Return the generated code.
836 return GetCode(kind(), Code::FAST, name); 864 return GetCode(kind(), Code::FAST, name);
837 } 865 }
838 866
839 867
840 #undef __ 868 #undef __
841 } 869 }
842 } // namespace v8::internal 870 } // namespace v8::internal
843 871
844 #endif // V8_TARGET_ARCH_IA32 872 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/arm/ic-arm.cc ('k') | src/ic/arm64/ic-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698