| 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_CODE_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
| 6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 } | 1351 } |
| 1352 | 1352 |
| 1353 static Handle<HeapObject> property_cell_placeholder(Isolate* isolate) { | 1353 static Handle<HeapObject> property_cell_placeholder(Isolate* isolate) { |
| 1354 return isolate->factory()->uninitialized_value(); | 1354 return isolate->factory()->uninitialized_value(); |
| 1355 } | 1355 } |
| 1356 | 1356 |
| 1357 static Handle<HeapObject> global_map_placeholder(Isolate* isolate) { | 1357 static Handle<HeapObject> global_map_placeholder(Isolate* isolate) { |
| 1358 return isolate->factory()->termination_exception(); | 1358 return isolate->factory()->termination_exception(); |
| 1359 } | 1359 } |
| 1360 | 1360 |
| 1361 Handle<Code> GetCodeCopyFromTemplate(Handle<GlobalObject> global, | 1361 Handle<Code> GetCodeCopyFromTemplate(Handle<JSGlobalObject> global, |
| 1362 Handle<PropertyCell> cell) { | 1362 Handle<PropertyCell> cell) { |
| 1363 Code::FindAndReplacePattern pattern; | 1363 Code::FindAndReplacePattern pattern; |
| 1364 if (check_global()) { | 1364 if (check_global()) { |
| 1365 pattern.Add(handle(global_map_placeholder(isolate())->map()), | 1365 pattern.Add(handle(global_map_placeholder(isolate())->map()), |
| 1366 Map::WeakCellForMap(Handle<Map>(global->map()))); | 1366 Map::WeakCellForMap(Handle<Map>(global->map()))); |
| 1367 } | 1367 } |
| 1368 pattern.Add(handle(property_cell_placeholder(isolate())->map()), | 1368 pattern.Add(handle(property_cell_placeholder(isolate())->map()), |
| 1369 isolate()->factory()->NewWeakCell(cell)); | 1369 isolate()->factory()->NewWeakCell(cell)); |
| 1370 return CodeStub::GetCodeCopy(pattern); | 1370 return CodeStub::GetCodeCopy(pattern); |
| 1371 } | 1371 } |
| (...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3131 #undef DEFINE_HYDROGEN_CODE_STUB | 3131 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3132 #undef DEFINE_CODE_STUB | 3132 #undef DEFINE_CODE_STUB |
| 3133 #undef DEFINE_CODE_STUB_BASE | 3133 #undef DEFINE_CODE_STUB_BASE |
| 3134 | 3134 |
| 3135 extern Representation RepresentationFromType(Type* type); | 3135 extern Representation RepresentationFromType(Type* type); |
| 3136 | 3136 |
| 3137 } // namespace internal | 3137 } // namespace internal |
| 3138 } // namespace v8 | 3138 } // namespace v8 |
| 3139 | 3139 |
| 3140 #endif // V8_CODE_STUBS_H_ | 3140 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |