| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1360 | 1360 |
| 1361 void BuildInitializeElementsHeader(HValue* elements, | 1361 void BuildInitializeElementsHeader(HValue* elements, |
| 1362 ElementsKind kind, | 1362 ElementsKind kind, |
| 1363 HValue* capacity); | 1363 HValue* capacity); |
| 1364 | 1364 |
| 1365 HValue* BuildAllocateElementsAndInitializeElementsHeader(HValue* context, | 1365 HValue* BuildAllocateElementsAndInitializeElementsHeader(HValue* context, |
| 1366 ElementsKind kind, | 1366 ElementsKind kind, |
| 1367 HValue* capacity); | 1367 HValue* capacity); |
| 1368 | 1368 |
| 1369 // array must have been allocated with enough room for | 1369 // array must have been allocated with enough room for |
| 1370 // 1) the JSArray, 2) a AllocationSiteInfo if mode requires it, | 1370 // 1) the JSArray, 2) a AllocationMemento if mode requires it, |
| 1371 // 3) a FixedArray or FixedDoubleArray. | 1371 // 3) a FixedArray or FixedDoubleArray. |
| 1372 // A pointer to the Fixed(Double)Array is returned. | 1372 // A pointer to the Fixed(Double)Array is returned. |
| 1373 HInnerAllocatedObject* BuildJSArrayHeader(HValue* array, | 1373 HInnerAllocatedObject* BuildJSArrayHeader(HValue* array, |
| 1374 HValue* array_map, | 1374 HValue* array_map, |
| 1375 AllocationSiteMode mode, | 1375 AllocationSiteMode mode, |
| 1376 HValue* allocation_site_payload, | 1376 HValue* allocation_site_payload, |
| 1377 HValue* length_field); | 1377 HValue* length_field); |
| 1378 | 1378 |
| 1379 HValue* BuildGrowElementsCapacity(HValue* object, | 1379 HValue* BuildGrowElementsCapacity(HValue* object, |
| 1380 HValue* elements, | 1380 HValue* elements, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1406 | 1406 |
| 1407 HInstruction* BuildUnaryMathOp( | 1407 HInstruction* BuildUnaryMathOp( |
| 1408 HValue* value, Handle<Type> type, Token::Value token); | 1408 HValue* value, Handle<Type> type, Token::Value token); |
| 1409 | 1409 |
| 1410 void BuildCompareNil( | 1410 void BuildCompareNil( |
| 1411 HValue* value, | 1411 HValue* value, |
| 1412 Handle<Type> type, | 1412 Handle<Type> type, |
| 1413 int position, | 1413 int position, |
| 1414 HIfContinuation* continuation); | 1414 HIfContinuation* continuation); |
| 1415 | 1415 |
| 1416 HValue* BuildCreateAllocationSiteInfo(HValue* previous_object, | 1416 HValue* BuildCreateAllocationMemento(HValue* previous_object, |
| 1417 int previous_object_size, | 1417 int previous_object_size, |
| 1418 HValue* payload); | 1418 HValue* payload); |
| 1419 | 1419 |
| 1420 HInstruction* BuildGetNativeContext(HValue* context); | 1420 HInstruction* BuildGetNativeContext(HValue* context); |
| 1421 HInstruction* BuildGetArrayFunction(HValue* context); | 1421 HInstruction* BuildGetArrayFunction(HValue* context); |
| 1422 | 1422 |
| 1423 private: | 1423 private: |
| 1424 HGraphBuilder(); | 1424 HGraphBuilder(); |
| 1425 CompilationInfo* info_; | 1425 CompilationInfo* info_; |
| 1426 HGraph* graph_; | 1426 HGraph* graph_; |
| 1427 HBasicBlock* current_block_; | 1427 HBasicBlock* current_block_; |
| 1428 int no_side_effects_scope_count_; | 1428 int no_side_effects_scope_count_; |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2095 EmbeddedVector<char, 64> filename_; | 2095 EmbeddedVector<char, 64> filename_; |
| 2096 HeapStringAllocator string_allocator_; | 2096 HeapStringAllocator string_allocator_; |
| 2097 StringStream trace_; | 2097 StringStream trace_; |
| 2098 int indent_; | 2098 int indent_; |
| 2099 }; | 2099 }; |
| 2100 | 2100 |
| 2101 | 2101 |
| 2102 } } // namespace v8::internal | 2102 } } // namespace v8::internal |
| 2103 | 2103 |
| 2104 #endif // V8_HYDROGEN_H_ | 2104 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |