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

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

Issue 1590273002: [runtime] No need to carry around the creation context for JSBoundFunctions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debug. Created 4 years, 11 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
« no previous file with comments | « src/objects.cc ('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 // 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/disasm.h" 8 #include "src/disasm.h"
9 #include "src/disassembler.h" 9 #include "src/disassembler.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 CHECK(this->length() >= SlicedString::kMinLength); 546 CHECK(this->length() >= SlicedString::kMinLength);
547 } 547 }
548 548
549 549
550 void JSBoundFunction::JSBoundFunctionVerify() { 550 void JSBoundFunction::JSBoundFunctionVerify() {
551 CHECK(IsJSBoundFunction()); 551 CHECK(IsJSBoundFunction());
552 JSObjectVerify(); 552 JSObjectVerify();
553 VerifyObjectField(kBoundThisOffset); 553 VerifyObjectField(kBoundThisOffset);
554 VerifyObjectField(kBoundTargetFunctionOffset); 554 VerifyObjectField(kBoundTargetFunctionOffset);
555 VerifyObjectField(kBoundArgumentsOffset); 555 VerifyObjectField(kBoundArgumentsOffset);
556 VerifyObjectField(kCreationContextOffset);
557 CHECK(bound_target_function()->IsCallable()); 556 CHECK(bound_target_function()->IsCallable());
558 CHECK(creation_context()->IsNativeContext());
559 CHECK(IsCallable()); 557 CHECK(IsCallable());
560 CHECK_EQ(IsConstructor(), bound_target_function()->IsConstructor()); 558 CHECK_EQ(IsConstructor(), bound_target_function()->IsConstructor());
561 } 559 }
562 560
563 561
564 void JSFunction::JSFunctionVerify() { 562 void JSFunction::JSFunctionVerify() {
565 CHECK(IsJSFunction()); 563 CHECK(IsJSFunction());
566 VerifyObjectField(kPrototypeOrInitialMapOffset); 564 VerifyObjectField(kPrototypeOrInitialMapOffset);
567 VerifyObjectField(kNextFunctionLinkOffset); 565 VerifyObjectField(kNextFunctionLinkOffset);
568 CHECK(code()->IsCode()); 566 CHECK(code()->IsCode());
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 1331
1334 // Both are done at the same time. 1332 // Both are done at the same time.
1335 CHECK_EQ(new_it.done(), old_it.done()); 1333 CHECK_EQ(new_it.done(), old_it.done());
1336 } 1334 }
1337 1335
1338 1336
1339 #endif // DEBUG 1337 #endif // DEBUG
1340 1338
1341 } // namespace internal 1339 } // namespace internal
1342 } // namespace v8 1340 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698