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

Side by Side Diff: src/objects-debug.cc

Issue 10876067: Introduce global contexts to represent lexical global scope(s). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Sven's comments. Created 8 years, 3 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/objects.h ('k') | src/objects-inl.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 // 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 BitCast<uint64_t>(canonical_not_the_hole_nan_as_double())) || 375 BitCast<uint64_t>(canonical_not_the_hole_nan_as_double())) ||
376 ((BitCast<uint64_t>(value) & Double::kSignMask) != 0)); 376 ((BitCast<uint64_t>(value) & Double::kSignMask) != 0));
377 } 377 }
378 } 378 }
379 } 379 }
380 380
381 381
382 void JSModule::JSModuleVerify() { 382 void JSModule::JSModuleVerify() {
383 VerifyObjectField(kContextOffset); 383 VerifyObjectField(kContextOffset);
384 VerifyObjectField(kScopeInfoOffset); 384 VerifyObjectField(kScopeInfoOffset);
385 CHECK(context()->IsUndefined() || context()->IsModuleContext()); 385 CHECK(context()->IsUndefined() ||
386 Context::cast(context())->IsModuleContext());
386 } 387 }
387 388
388 389
389 void JSValue::JSValueVerify() { 390 void JSValue::JSValueVerify() {
390 Object* v = value(); 391 Object* v = value();
391 if (v->IsHeapObject()) { 392 if (v->IsHeapObject()) {
392 VerifyHeapPointer(v); 393 VerifyHeapPointer(v);
393 } 394 }
394 } 395 }
395 396
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 FixedArray* proto_transitions = GetPrototypeTransitions(); 1015 FixedArray* proto_transitions = GetPrototypeTransitions();
1015 MemsetPointer(proto_transitions->data_start(), 1016 MemsetPointer(proto_transitions->data_start(),
1016 GetHeap()->the_hole_value(), 1017 GetHeap()->the_hole_value(),
1017 proto_transitions->length()); 1018 proto_transitions->length());
1018 } 1019 }
1019 1020
1020 1021
1021 #endif // DEBUG 1022 #endif // DEBUG
1022 1023
1023 } } // namespace v8::internal 1024 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698