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

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

Issue 1010883002: Switch full-codegen from StackHandlers to handler table. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-isolate-dead-code
Patch Set: Minor cleanup. Created 5 years, 9 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
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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 416
417 void JSGeneratorObject::JSGeneratorObjectVerify() { 417 void JSGeneratorObject::JSGeneratorObjectVerify() {
418 // In an expression like "new g()", there can be a point where a generator 418 // In an expression like "new g()", there can be a point where a generator
419 // object is allocated but its fields are all undefined, as it hasn't yet been 419 // object is allocated but its fields are all undefined, as it hasn't yet been
420 // initialized by the generator. Hence these weak checks. 420 // initialized by the generator. Hence these weak checks.
421 VerifyObjectField(kFunctionOffset); 421 VerifyObjectField(kFunctionOffset);
422 VerifyObjectField(kContextOffset); 422 VerifyObjectField(kContextOffset);
423 VerifyObjectField(kReceiverOffset); 423 VerifyObjectField(kReceiverOffset);
424 VerifyObjectField(kOperandStackOffset); 424 VerifyObjectField(kOperandStackOffset);
425 VerifyObjectField(kContinuationOffset); 425 VerifyObjectField(kContinuationOffset);
426 VerifyObjectField(kStackHandlerIndexOffset);
427 } 426 }
428 427
429 428
430 void JSModule::JSModuleVerify() { 429 void JSModule::JSModuleVerify() {
431 VerifyObjectField(kContextOffset); 430 VerifyObjectField(kContextOffset);
432 VerifyObjectField(kScopeInfoOffset); 431 VerifyObjectField(kScopeInfoOffset);
433 CHECK(context()->IsUndefined() || 432 CHECK(context()->IsUndefined() ||
434 Context::cast(context())->IsModuleContext()); 433 Context::cast(context())->IsModuleContext());
435 } 434 }
436 435
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 ? it.rinfo()->target_cell() 1269 ? it.rinfo()->target_cell()
1271 : it.rinfo()->target_object(); 1270 : it.rinfo()->target_object();
1272 CHECK(!CanLeak(target, heap, skip_weak_cell)); 1271 CHECK(!CanLeak(target, heap, skip_weak_cell));
1273 } 1272 }
1274 } 1273 }
1275 1274
1276 1275
1277 #endif // DEBUG 1276 #endif // DEBUG
1278 1277
1279 } } // namespace v8::internal 1278 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698