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

Side by Side Diff: src/builtins/builtins-object.cc

Issue 2523223003: Merged: Squashed multiple commits. (Closed)
Patch Set: Created 4 years 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/builtins/builtins.h ('k') | src/code-factory.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/builtins/builtins.h" 5 #include "src/builtins/builtins.h"
6 #include "src/builtins/builtins-utils.h" 6 #include "src/builtins/builtins-utils.h"
7 7
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/property-descriptor.h" 9 #include "src/property-descriptor.h"
10 10
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 void Builtins::Generate_InstanceOf(CodeStubAssembler* assembler) { 1044 void Builtins::Generate_InstanceOf(CodeStubAssembler* assembler) {
1045 typedef compiler::Node Node; 1045 typedef compiler::Node Node;
1046 typedef CompareDescriptor Descriptor; 1046 typedef CompareDescriptor Descriptor;
1047 Node* object = assembler->Parameter(Descriptor::kLeft); 1047 Node* object = assembler->Parameter(Descriptor::kLeft);
1048 Node* callable = assembler->Parameter(Descriptor::kRight); 1048 Node* callable = assembler->Parameter(Descriptor::kRight);
1049 Node* context = assembler->Parameter(Descriptor::kContext); 1049 Node* context = assembler->Parameter(Descriptor::kContext);
1050 1050
1051 assembler->Return(assembler->InstanceOf(object, callable, context)); 1051 assembler->Return(assembler->InstanceOf(object, callable, context));
1052 } 1052 }
1053 1053
1054 // ES6 section 7.3.19 OrdinaryHasInstance ( C, O )
1055 void Builtins::Generate_OrdinaryHasInstance(CodeStubAssembler* assembler) {
1056 typedef compiler::Node Node;
1057 typedef CompareDescriptor Descriptor;
1058
1059 Node* constructor = assembler->Parameter(Descriptor::kLeft);
1060 Node* object = assembler->Parameter(Descriptor::kRight);
1061 Node* context = assembler->Parameter(Descriptor::kContext);
1062
1063 assembler->Return(
1064 assembler->OrdinaryHasInstance(context, constructor, object));
1065 }
1066
1054 } // namespace internal 1067 } // namespace internal
1055 } // namespace v8 1068 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins.h ('k') | src/code-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698