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

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

Issue 10861007: Rename JSGlobalProxy::context to native_context, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 VerifyObjectField(kInstanceClassNameOffset); 514 VerifyObjectField(kInstanceClassNameOffset);
515 VerifyObjectField(kFunctionDataOffset); 515 VerifyObjectField(kFunctionDataOffset);
516 VerifyObjectField(kScriptOffset); 516 VerifyObjectField(kScriptOffset);
517 VerifyObjectField(kDebugInfoOffset); 517 VerifyObjectField(kDebugInfoOffset);
518 } 518 }
519 519
520 520
521 void JSGlobalProxy::JSGlobalProxyVerify() { 521 void JSGlobalProxy::JSGlobalProxyVerify() {
522 CHECK(IsJSGlobalProxy()); 522 CHECK(IsJSGlobalProxy());
523 JSObjectVerify(); 523 JSObjectVerify();
524 VerifyObjectField(JSGlobalProxy::kContextOffset); 524 VerifyObjectField(JSGlobalProxy::kNativeContextOffset);
525 // Make sure that this object has no properties, elements. 525 // Make sure that this object has no properties, elements.
526 CHECK_EQ(0, properties()->length()); 526 CHECK_EQ(0, properties()->length());
527 CHECK(HasFastObjectElements()); 527 CHECK(HasFastObjectElements());
528 CHECK_EQ(0, FixedArray::cast(elements())->length()); 528 CHECK_EQ(0, FixedArray::cast(elements())->length());
529 } 529 }
530 530
531 531
532 void JSGlobalObject::JSGlobalObjectVerify() { 532 void JSGlobalObject::JSGlobalObjectVerify() {
533 CHECK(IsJSGlobalObject()); 533 CHECK(IsJSGlobalObject());
534 JSObjectVerify(); 534 JSObjectVerify();
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 FixedArray* proto_transitions = GetPrototypeTransitions(); 1014 FixedArray* proto_transitions = GetPrototypeTransitions();
1015 MemsetPointer(proto_transitions->data_start(), 1015 MemsetPointer(proto_transitions->data_start(),
1016 GetHeap()->the_hole_value(), 1016 GetHeap()->the_hole_value(),
1017 proto_transitions->length()); 1017 proto_transitions->length());
1018 } 1018 }
1019 1019
1020 1020
1021 #endif // DEBUG 1021 #endif // DEBUG
1022 1022
1023 } } // namespace v8::internal 1023 } } // 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