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

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

Issue 265763007: Merge NewFunction and NewFunctionWithPrototype (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/factory.cc ('k') | no next file » | 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 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "disassembler.h" 7 #include "disassembler.h"
8 #include "disasm.h" 8 #include "disasm.h"
9 #include "jsregexp.h" 9 #include "jsregexp.h"
10 #include "macro-assembler.h" 10 #include "macro-assembler.h"
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 VerifyObjectField(kDebugInfoOffset); 535 VerifyObjectField(kDebugInfoOffset);
536 } 536 }
537 537
538 538
539 void JSGlobalProxy::JSGlobalProxyVerify() { 539 void JSGlobalProxy::JSGlobalProxyVerify() {
540 CHECK(IsJSGlobalProxy()); 540 CHECK(IsJSGlobalProxy());
541 JSObjectVerify(); 541 JSObjectVerify();
542 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); 542 VerifyObjectField(JSGlobalProxy::kNativeContextOffset);
543 // Make sure that this object has no properties, elements. 543 // Make sure that this object has no properties, elements.
544 CHECK_EQ(0, properties()->length()); 544 CHECK_EQ(0, properties()->length());
545 CHECK(HasFastObjectElements()); 545 CHECK(HasFastSmiElements());
546 CHECK_EQ(0, FixedArray::cast(elements())->length()); 546 CHECK_EQ(0, FixedArray::cast(elements())->length());
547 } 547 }
548 548
549 549
550 void JSGlobalObject::JSGlobalObjectVerify() { 550 void JSGlobalObject::JSGlobalObjectVerify() {
551 CHECK(IsJSGlobalObject()); 551 CHECK(IsJSGlobalObject());
552 JSObjectVerify(); 552 JSObjectVerify();
553 for (int i = GlobalObject::kBuiltinsOffset; 553 for (int i = GlobalObject::kBuiltinsOffset;
554 i < JSGlobalObject::kSize; 554 i < JSGlobalObject::kSize;
555 i += kPointerSize) { 555 i += kPointerSize) {
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 for (int i = 0; i < number_of_transitions(); ++i) { 1196 for (int i = 0; i < number_of_transitions(); ++i) {
1197 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1197 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1198 } 1198 }
1199 return true; 1199 return true;
1200 } 1200 }
1201 1201
1202 1202
1203 #endif // DEBUG 1203 #endif // DEBUG
1204 1204
1205 } } // namespace v8::internal 1205 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698