| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 // Returns a node that is true if the given bit is set in |word32|. | 217 // Returns a node that is true if the given bit is set in |word32|. |
| 218 template <typename T> | 218 template <typename T> |
| 219 compiler::Node* BitFieldDecode(compiler::Node* word32) { | 219 compiler::Node* BitFieldDecode(compiler::Node* word32) { |
| 220 return BitFieldDecode(word32, T::kShift, T::kMask); | 220 return BitFieldDecode(word32, T::kShift, T::kMask); |
| 221 } | 221 } |
| 222 | 222 |
| 223 compiler::Node* BitFieldDecode(compiler::Node* word32, uint32_t shift, | 223 compiler::Node* BitFieldDecode(compiler::Node* word32, uint32_t shift, |
| 224 uint32_t mask); | 224 uint32_t mask); |
| 225 | 225 |
| 226 void Boom(); |
| 227 |
| 226 // Various building blocks for stubs doing property lookups. | 228 // Various building blocks for stubs doing property lookups. |
| 227 void TryToName(compiler::Node* key, Label* if_keyisindex, Variable* var_index, | 229 void TryToName(compiler::Node* key, Label* if_keyisindex, Variable* var_index, |
| 228 Label* if_keyisunique, Label* call_runtime); | 230 Label* if_keyisunique, Label* call_runtime); |
| 229 | 231 |
| 230 void TryLookupProperty(compiler::Node* object, compiler::Node* map, | 232 void TryLookupProperty(compiler::Node* object, compiler::Node* map, |
| 231 compiler::Node* instance_type, compiler::Node* name, | 233 compiler::Node* instance_type, compiler::Node* name, |
| 232 Label* if_found, Label* if_not_found, | 234 Label* if_found, Label* if_not_found, |
| 233 Label* call_runtime); | 235 Label* call_runtime); |
| 234 | 236 |
| 235 void TryLookupElement(compiler::Node* object, compiler::Node* map, | 237 void TryLookupElement(compiler::Node* object, compiler::Node* map, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 257 compiler::Node* top_adddress, | 259 compiler::Node* top_adddress, |
| 258 compiler::Node* limit_address); | 260 compiler::Node* limit_address); |
| 259 | 261 |
| 260 static const int kElementLoopUnrollThreshold = 8; | 262 static const int kElementLoopUnrollThreshold = 8; |
| 261 }; | 263 }; |
| 262 | 264 |
| 263 } // namespace internal | 265 } // namespace internal |
| 264 } // namespace v8 | 266 } // namespace v8 |
| 265 | 267 |
| 266 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 268 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |