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

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

Issue 1130133003: Migrate error messages, part 12. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@messages_11
Patch Set: Created 5 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
« 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 // 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 } 486 }
487 if (cache_stamp()->IsSmi()) { 487 if (cache_stamp()->IsSmi()) {
488 CHECK(Smi::cast(cache_stamp())->value() <= 488 CHECK(Smi::cast(cache_stamp())->value() <=
489 Smi::cast(GetIsolate()->date_cache()->stamp())->value()); 489 Smi::cast(GetIsolate()->date_cache()->stamp())->value());
490 } 490 }
491 } 491 }
492 492
493 493
494 void JSMessageObject::JSMessageObjectVerify() { 494 void JSMessageObject::JSMessageObjectVerify() {
495 CHECK(IsJSMessageObject()); 495 CHECK(IsJSMessageObject());
496 CHECK(type()->IsString());
497 CHECK(arguments()->IsJSArray());
498 VerifyObjectField(kStartPositionOffset); 496 VerifyObjectField(kStartPositionOffset);
499 VerifyObjectField(kEndPositionOffset); 497 VerifyObjectField(kEndPositionOffset);
500 VerifyObjectField(kArgumentsOffset); 498 VerifyObjectField(kArgumentsOffset);
501 VerifyObjectField(kScriptOffset); 499 VerifyObjectField(kScriptOffset);
502 VerifyObjectField(kStackFramesOffset); 500 VerifyObjectField(kStackFramesOffset);
503 } 501 }
504 502
505 503
506 void String::StringVerify() { 504 void String::StringVerify() {
507 CHECK(IsString()); 505 CHECK(IsString());
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 ? it.rinfo()->target_cell() 1280 ? it.rinfo()->target_cell()
1283 : it.rinfo()->target_object(); 1281 : it.rinfo()->target_object();
1284 CHECK(!CanLeak(target, heap, skip_weak_cell)); 1282 CHECK(!CanLeak(target, heap, skip_weak_cell));
1285 } 1283 }
1286 } 1284 }
1287 1285
1288 1286
1289 #endif // DEBUG 1287 #endif // DEBUG
1290 1288
1291 } } // namespace v8::internal 1289 } } // 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