| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |