Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/code-stubs.h

Issue 1406113007: Merge GlobalObject with JSGlobalObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698