| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_CRANKSHAFT_HYDROGEN_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_ |
| 6 #define V8_CRANKSHAFT_HYDROGEN_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_H_ |
| 7 | 7 |
| 8 #include "src/accessors.h" | 8 #include "src/accessors.h" |
| 9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
| 10 #include "src/ast/ast-type-bounds.h" | 10 #include "src/ast/ast-type-bounds.h" |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1410 HValue* BuildToNumber(HValue* input); | 1410 HValue* BuildToNumber(HValue* input); |
| 1411 HValue* BuildToObject(HValue* receiver); | 1411 HValue* BuildToObject(HValue* receiver); |
| 1412 | 1412 |
| 1413 HValue* BuildUncheckedDictionaryElementLoad(HValue* receiver, | 1413 HValue* BuildUncheckedDictionaryElementLoad(HValue* receiver, |
| 1414 HValue* elements, HValue* key, | 1414 HValue* elements, HValue* key, |
| 1415 HValue* hash); | 1415 HValue* hash); |
| 1416 | 1416 |
| 1417 // ES6 section 7.4.7 CreateIterResultObject ( value, done ) | 1417 // ES6 section 7.4.7 CreateIterResultObject ( value, done ) |
| 1418 HValue* BuildCreateIterResultObject(HValue* value, HValue* done); | 1418 HValue* BuildCreateIterResultObject(HValue* value, HValue* done); |
| 1419 | 1419 |
| 1420 HValue* BuildRegExpConstructResult(HValue* length, | |
| 1421 HValue* index, | |
| 1422 HValue* input); | |
| 1423 | |
| 1424 // Allocates a new object according with the given allocation properties. | 1420 // Allocates a new object according with the given allocation properties. |
| 1425 HAllocate* BuildAllocate(HValue* object_size, | 1421 HAllocate* BuildAllocate(HValue* object_size, |
| 1426 HType type, | 1422 HType type, |
| 1427 InstanceType instance_type, | 1423 InstanceType instance_type, |
| 1428 HAllocationMode allocation_mode); | 1424 HAllocationMode allocation_mode); |
| 1429 // Computes the sum of two string lengths, taking care of overflow handling. | 1425 // Computes the sum of two string lengths, taking care of overflow handling. |
| 1430 HValue* BuildAddStringLengths(HValue* left_length, HValue* right_length); | 1426 HValue* BuildAddStringLengths(HValue* left_length, HValue* right_length); |
| 1431 // Creates a cons string using the two input strings. | 1427 // Creates a cons string using the two input strings. |
| 1432 HValue* BuildCreateConsString(HValue* length, | 1428 HValue* BuildCreateConsString(HValue* length, |
| 1433 HValue* left, | 1429 HValue* left, |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2195 F(ToInteger) \ | 2191 F(ToInteger) \ |
| 2196 F(ToObject) \ | 2192 F(ToObject) \ |
| 2197 F(ToString) \ | 2193 F(ToString) \ |
| 2198 F(ToLength) \ | 2194 F(ToLength) \ |
| 2199 F(ToNumber) \ | 2195 F(ToNumber) \ |
| 2200 F(IsJSReceiver) \ | 2196 F(IsJSReceiver) \ |
| 2201 F(DebugBreakInOptimizedCode) \ | 2197 F(DebugBreakInOptimizedCode) \ |
| 2202 F(StringCharCodeAt) \ | 2198 F(StringCharCodeAt) \ |
| 2203 F(SubString) \ | 2199 F(SubString) \ |
| 2204 F(RegExpExec) \ | 2200 F(RegExpExec) \ |
| 2205 F(RegExpConstructResult) \ | |
| 2206 F(RegExpFlags) \ | |
| 2207 F(RegExpSource) \ | |
| 2208 F(NumberToString) \ | 2201 F(NumberToString) \ |
| 2209 F(DebugIsActive) \ | 2202 F(DebugIsActive) \ |
| 2210 /* Typed Arrays */ \ | 2203 /* Typed Arrays */ \ |
| 2211 F(TypedArrayInitialize) \ | 2204 F(TypedArrayInitialize) \ |
| 2212 F(MaxSmi) \ | 2205 F(MaxSmi) \ |
| 2213 F(TypedArrayMaxSizeInHeap) \ | 2206 F(TypedArrayMaxSizeInHeap) \ |
| 2214 F(ArrayBufferViewGetByteLength) \ | 2207 F(ArrayBufferViewGetByteLength) \ |
| 2215 F(ArrayBufferViewGetByteOffset) \ | 2208 F(ArrayBufferViewGetByteOffset) \ |
| 2216 F(TypedArrayGetLength) \ | 2209 F(TypedArrayGetLength) \ |
| 2217 /* ArrayBuffer */ \ | 2210 /* ArrayBuffer */ \ |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3013 } | 3006 } |
| 3014 | 3007 |
| 3015 private: | 3008 private: |
| 3016 HOptimizedGraphBuilder* builder_; | 3009 HOptimizedGraphBuilder* builder_; |
| 3017 }; | 3010 }; |
| 3018 | 3011 |
| 3019 } // namespace internal | 3012 } // namespace internal |
| 3020 } // namespace v8 | 3013 } // namespace v8 |
| 3021 | 3014 |
| 3022 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3015 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
| OLD | NEW |