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

Side by Side Diff: src/code-stub-assembler.h

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 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/builtins.cc ('k') | src/code-stub-assembler.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 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 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include "src/compiler/code-assembler.h" 8 #include "src/compiler/code-assembler.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 void TryLookupProperty(compiler::Node* object, compiler::Node* map, 238 void TryLookupProperty(compiler::Node* object, compiler::Node* map,
239 compiler::Node* instance_type, compiler::Node* name, 239 compiler::Node* instance_type, compiler::Node* name,
240 Label* if_found, Label* if_not_found, 240 Label* if_found, Label* if_not_found,
241 Label* call_runtime); 241 Label* call_runtime);
242 242
243 void TryLookupElement(compiler::Node* object, compiler::Node* map, 243 void TryLookupElement(compiler::Node* object, compiler::Node* map,
244 compiler::Node* instance_type, compiler::Node* index, 244 compiler::Node* instance_type, compiler::Node* index,
245 Label* if_found, Label* if_not_found, 245 Label* if_found, Label* if_not_found,
246 Label* call_runtime); 246 Label* call_runtime);
247 247
248 // Instanceof helpers.
249 // ES6 section 7.3.19 OrdinaryHasInstance (C, O)
250 compiler::Node* OrdinaryHasInstance(compiler::Node* context,
251 compiler::Node* callable,
252 compiler::Node* object);
253
248 private: 254 private:
249 compiler::Node* AllocateRawAligned(compiler::Node* size_in_bytes, 255 compiler::Node* AllocateRawAligned(compiler::Node* size_in_bytes,
250 AllocationFlags flags, 256 AllocationFlags flags,
251 compiler::Node* top_address, 257 compiler::Node* top_address,
252 compiler::Node* limit_address); 258 compiler::Node* limit_address);
253 compiler::Node* AllocateRawUnaligned(compiler::Node* size_in_bytes, 259 compiler::Node* AllocateRawUnaligned(compiler::Node* size_in_bytes,
254 AllocationFlags flags, 260 AllocationFlags flags,
255 compiler::Node* top_adddress, 261 compiler::Node* top_adddress,
256 compiler::Node* limit_address); 262 compiler::Node* limit_address);
257 263
258 static const int kElementLoopUnrollThreshold = 8; 264 static const int kElementLoopUnrollThreshold = 8;
259 }; 265 };
260 266
261 } // namespace internal 267 } // namespace internal
262 } // namespace v8 268 } // namespace v8
263 269
264 #endif // V8_CODE_STUB_ASSEMBLER_H_ 270 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698