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

Side by Side Diff: src/code-factory.cc

Issue 1894953004: Add HasProperty code stub that tries simple lookups or jumps to runtime otherwise. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments, tweak linear search limit based on local measurements 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
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/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 ConstructTrampolineDescriptor(isolate)); 531 ConstructTrampolineDescriptor(isolate));
532 } 532 }
533 533
534 534
535 // static 535 // static
536 Callable CodeFactory::ConstructFunction(Isolate* isolate) { 536 Callable CodeFactory::ConstructFunction(Isolate* isolate) {
537 return Callable(isolate->builtins()->ConstructFunction(), 537 return Callable(isolate->builtins()->ConstructFunction(),
538 ConstructTrampolineDescriptor(isolate)); 538 ConstructTrampolineDescriptor(isolate));
539 } 539 }
540 540
541 // static
542 Callable CodeFactory::HasProperty(Isolate* isolate) {
543 HasPropertyStub stub(isolate);
544 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
545 }
541 546
542 // static 547 // static
543 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, 548 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate,
544 TailCallMode tail_call_mode) { 549 TailCallMode tail_call_mode) {
545 return Callable( 550 return Callable(
546 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode), 551 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode),
547 InterpreterPushArgsAndCallDescriptor(isolate)); 552 InterpreterPushArgsAndCallDescriptor(isolate));
548 } 553 }
549 554
550 555
(...skipping 12 matching lines...) Expand all
563 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 568 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
564 } 569 }
565 570
566 Callable CodeFactory::AtomicsLoad(Isolate* isolate) { 571 Callable CodeFactory::AtomicsLoad(Isolate* isolate) {
567 AtomicsLoadStub stub(isolate); 572 AtomicsLoadStub stub(isolate);
568 return Callable(stub.GetCode(), AtomicsLoadDescriptor(isolate)); 573 return Callable(stub.GetCode(), AtomicsLoadDescriptor(isolate));
569 } 574 }
570 575
571 } // namespace internal 576 } // namespace internal
572 } // namespace v8 577 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stub-assembler.h » ('j') | src/code-stub-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698