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

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

Issue 1314953004: [interpreter] Add constant_pool() to BytecodeArray. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_args
Patch Set: Fix test flag. Created 5 years, 3 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 219
220 void ByteArray::ByteArrayVerify() { 220 void ByteArray::ByteArrayVerify() {
221 CHECK(IsByteArray()); 221 CHECK(IsByteArray());
222 } 222 }
223 223
224 224
225 void BytecodeArray::BytecodeArrayVerify() { 225 void BytecodeArray::BytecodeArrayVerify() {
226 // TODO(oth): Walk bytecodes and immediate values to validate sanity. 226 // TODO(oth): Walk bytecodes and immediate values to validate sanity.
227 CHECK(IsBytecodeArray()); 227 CHECK(IsBytecodeArray());
228 CHECK(constant_pool()->IsFixedArray());
229 VerifyHeapPointer(constant_pool());
228 } 230 }
229 231
230 232
231 void FreeSpace::FreeSpaceVerify() { 233 void FreeSpace::FreeSpaceVerify() {
232 CHECK(IsFreeSpace()); 234 CHECK(IsFreeSpace());
233 } 235 }
234 236
235 237
236 template <class Traits> 238 template <class Traits>
237 void FixedTypedArray<Traits>::FixedTypedArrayVerify() { 239 void FixedTypedArray<Traits>::FixedTypedArrayVerify() {
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 1315
1314 // Both are done at the same time. 1316 // Both are done at the same time.
1315 CHECK_EQ(new_it.done(), old_it.done()); 1317 CHECK_EQ(new_it.done(), old_it.done());
1316 } 1318 }
1317 1319
1318 1320
1319 #endif // DEBUG 1321 #endif // DEBUG
1320 1322
1321 } // namespace internal 1323 } // namespace internal
1322 } // namespace v8 1324 } // 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