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

Side by Side Diff: src/objects.h

Issue 1640213002: [Interpreter] Add option to trace bytecode execution. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 10 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/interpreter/interpreter.cc ('k') | src/runtime/runtime.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 4424 matching lines...) Expand 10 before | Expand all | Expand 10 after
4435 4435
4436 // Layout description. 4436 // Layout description.
4437 static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize; 4437 static const int kFrameSizeOffset = FixedArrayBase::kHeaderSize;
4438 static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize; 4438 static const int kParameterSizeOffset = kFrameSizeOffset + kIntSize;
4439 static const int kConstantPoolOffset = kParameterSizeOffset + kIntSize; 4439 static const int kConstantPoolOffset = kParameterSizeOffset + kIntSize;
4440 static const int kHandlerTableOffset = kConstantPoolOffset + kPointerSize; 4440 static const int kHandlerTableOffset = kConstantPoolOffset + kPointerSize;
4441 static const int kSourcePositionTableOffset = 4441 static const int kSourcePositionTableOffset =
4442 kHandlerTableOffset + kPointerSize; 4442 kHandlerTableOffset + kPointerSize;
4443 static const int kHeaderSize = kSourcePositionTableOffset + kPointerSize; 4443 static const int kHeaderSize = kSourcePositionTableOffset + kPointerSize;
4444 4444
4445 static const int kAlignedSize = OBJECT_POINTER_ALIGN(kHeaderSize);
4446
4447 // Maximal memory consumption for a single BytecodeArray. 4445 // Maximal memory consumption for a single BytecodeArray.
4448 static const int kMaxSize = 512 * MB; 4446 static const int kMaxSize = 512 * MB;
4449 // Maximal length of a single BytecodeArray. 4447 // Maximal length of a single BytecodeArray.
4450 static const int kMaxLength = kMaxSize - kHeaderSize; 4448 static const int kMaxLength = kMaxSize - kHeaderSize;
4451 4449
4452 class BodyDescriptor; 4450 class BodyDescriptor;
4453 4451
4454 private: 4452 private:
4455 DISALLOW_IMPLICIT_CONSTRUCTORS(BytecodeArray); 4453 DISALLOW_IMPLICIT_CONSTRUCTORS(BytecodeArray);
4456 }; 4454 };
(...skipping 6321 matching lines...) Expand 10 before | Expand all | Expand 10 after
10778 } 10776 }
10779 return value; 10777 return value;
10780 } 10778 }
10781 }; 10779 };
10782 10780
10783 10781
10784 } // NOLINT, false-positive due to second-order macros. 10782 } // NOLINT, false-positive due to second-order macros.
10785 } // NOLINT, false-positive due to second-order macros. 10783 } // NOLINT, false-positive due to second-order macros.
10786 10784
10787 #endif // V8_OBJECTS_H_ 10785 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698