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

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 352173006: Clean up the global object naming madness. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « src/generator.js ('k') | src/hydrogen.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/heap-snapshot-generator-inl.h" 7 #include "src/heap-snapshot-generator-inl.h"
8 8
9 #include "src/allocation-tracker.h" 9 #include "src/allocation-tracker.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 SetInternalReference(global_obj, entry, 1209 SetInternalReference(global_obj, entry,
1210 "builtins", global_obj->builtins(), 1210 "builtins", global_obj->builtins(),
1211 GlobalObject::kBuiltinsOffset); 1211 GlobalObject::kBuiltinsOffset);
1212 SetInternalReference(global_obj, entry, 1212 SetInternalReference(global_obj, entry,
1213 "native_context", global_obj->native_context(), 1213 "native_context", global_obj->native_context(),
1214 GlobalObject::kNativeContextOffset); 1214 GlobalObject::kNativeContextOffset);
1215 SetInternalReference(global_obj, entry, 1215 SetInternalReference(global_obj, entry,
1216 "global_context", global_obj->global_context(), 1216 "global_context", global_obj->global_context(),
1217 GlobalObject::kGlobalContextOffset); 1217 GlobalObject::kGlobalContextOffset);
1218 SetInternalReference(global_obj, entry, 1218 SetInternalReference(global_obj, entry,
1219 "global_receiver", global_obj->global_receiver(), 1219 "global_proxy", global_obj->global_proxy(),
1220 GlobalObject::kGlobalReceiverOffset); 1220 GlobalObject::kGlobalProxyOffset);
1221 STATIC_ASSERT(GlobalObject::kHeaderSize - JSObject::kHeaderSize == 1221 STATIC_ASSERT(GlobalObject::kHeaderSize - JSObject::kHeaderSize ==
1222 4 * kPointerSize); 1222 4 * kPointerSize);
1223 } else if (obj->IsJSArrayBufferView()) { 1223 } else if (obj->IsJSArrayBufferView()) {
1224 JSArrayBufferView* view = JSArrayBufferView::cast(obj); 1224 JSArrayBufferView* view = JSArrayBufferView::cast(obj);
1225 SetInternalReference(view, entry, "buffer", view->buffer(), 1225 SetInternalReference(view, entry, "buffer", view->buffer(),
1226 JSArrayBufferView::kBufferOffset); 1226 JSArrayBufferView::kBufferOffset);
1227 SetWeakReference(view, entry, "weak_next", view->weak_next(), 1227 SetWeakReference(view, entry, "weak_next", view->weak_next(),
1228 JSArrayBufferView::kWeakNextOffset); 1228 JSArrayBufferView::kWeakNextOffset);
1229 } 1229 }
1230 TagObject(js_obj->properties(), "(object properties)"); 1230 TagObject(js_obj->properties(), "(object properties)");
(...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after
3171 writer_->AddString("\"<dummy>\""); 3171 writer_->AddString("\"<dummy>\"");
3172 for (int i = 1; i < sorted_strings.length(); ++i) { 3172 for (int i = 1; i < sorted_strings.length(); ++i) {
3173 writer_->AddCharacter(','); 3173 writer_->AddCharacter(',');
3174 SerializeString(sorted_strings[i]); 3174 SerializeString(sorted_strings[i]);
3175 if (writer_->aborted()) return; 3175 if (writer_->aborted()) return;
3176 } 3176 }
3177 } 3177 }
3178 3178
3179 3179
3180 } } // namespace v8::internal 3180 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/generator.js ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698