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

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

Issue 1817913003: Turn StoreWithInterceptor into a turbofan stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/ic/arm/handler-compiler-arm.cc ('k') | src/ic/handler-compiler.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 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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/ic/handler-compiler.h" 7 #include "src/ic/handler-compiler.h"
8 8
9 #include "src/api-arguments.h" 9 #include "src/api-arguments.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 } 379 }
380 __ Ret(); 380 __ Ret();
381 381
382 FrontendFooter(name, &miss); 382 FrontendFooter(name, &miss);
383 383
384 // Return the generated code. 384 // Return the generated code.
385 return GetCode(kind(), Code::NORMAL, name); 385 return GetCode(kind(), Code::NORMAL, name);
386 } 386 }
387 387
388 388
389 Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor(
390 Handle<Name> name) {
391 Label miss;
392
393 ASM_LOCATION("NamedStoreHandlerCompiler::CompileStoreInterceptor");
394
395 __ Push(receiver(), this->name(), value());
396
397 // Do tail-call to the runtime system.
398 __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor);
399
400 // Return the generated code.
401 return GetCode(kind(), Code::FAST, name);
402 }
403
404
405 Register NamedStoreHandlerCompiler::value() { 389 Register NamedStoreHandlerCompiler::value() {
406 return StoreDescriptor::ValueRegister(); 390 return StoreDescriptor::ValueRegister();
407 } 391 }
408 392
409 393
410 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label, 394 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label,
411 Handle<Name> name) { 395 Handle<Name> name) {
412 if (!label->is_unused()) { 396 if (!label->is_unused()) {
413 __ Bind(label); 397 __ Bind(label);
414 __ Mov(this->name(), Operand(name)); 398 __ Mov(this->name(), Operand(name));
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 // Return the generated code. 784 // Return the generated code.
801 return GetCode(kind(), Code::FAST, name); 785 return GetCode(kind(), Code::FAST, name);
802 } 786 }
803 787
804 788
805 #undef __ 789 #undef __
806 } // namespace internal 790 } // namespace internal
807 } // namespace v8 791 } // namespace v8
808 792
809 #endif // V8_TARGET_ARCH_IA32 793 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/arm/handler-compiler-arm.cc ('k') | src/ic/handler-compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698