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

Side by Side Diff: src/objects.h

Issue 2825903002: [inspector] deduplicate stack frames (Closed)
Patch Set: addressed comments Created 3 years, 8 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/isolate.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 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 #include <memory> 9 #include <memory>
10 10
(...skipping 10132 matching lines...) Expand 10 before | Expand all | Expand 10 after
10143 DECL_INT_ACCESSORS(line_number) 10143 DECL_INT_ACCESSORS(line_number)
10144 DECL_INT_ACCESSORS(column_number) 10144 DECL_INT_ACCESSORS(column_number)
10145 DECL_INT_ACCESSORS(script_id) 10145 DECL_INT_ACCESSORS(script_id)
10146 DECL_ACCESSORS(script_name, Object) 10146 DECL_ACCESSORS(script_name, Object)
10147 DECL_ACCESSORS(script_name_or_source_url, Object) 10147 DECL_ACCESSORS(script_name_or_source_url, Object)
10148 DECL_ACCESSORS(function_name, Object) 10148 DECL_ACCESSORS(function_name, Object)
10149 DECL_BOOLEAN_ACCESSORS(is_eval) 10149 DECL_BOOLEAN_ACCESSORS(is_eval)
10150 DECL_BOOLEAN_ACCESSORS(is_constructor) 10150 DECL_BOOLEAN_ACCESSORS(is_constructor)
10151 DECL_BOOLEAN_ACCESSORS(is_wasm) 10151 DECL_BOOLEAN_ACCESSORS(is_wasm)
10152 DECL_INT_ACCESSORS(flag) 10152 DECL_INT_ACCESSORS(flag)
10153 DECL_INT_ACCESSORS(id)
10153 10154
10154 DECLARE_CAST(StackFrameInfo) 10155 DECLARE_CAST(StackFrameInfo)
10155 10156
10156 // Dispatched behavior. 10157 // Dispatched behavior.
10157 DECLARE_PRINTER(StackFrameInfo) 10158 DECLARE_PRINTER(StackFrameInfo)
10158 DECLARE_VERIFIER(StackFrameInfo) 10159 DECLARE_VERIFIER(StackFrameInfo)
10159 10160
10160 static const int kLineNumberIndex = Struct::kHeaderSize; 10161 static const int kLineNumberIndex = Struct::kHeaderSize;
10161 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize; 10162 static const int kColumnNumberIndex = kLineNumberIndex + kPointerSize;
10162 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize; 10163 static const int kScriptIdIndex = kColumnNumberIndex + kPointerSize;
10163 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize; 10164 static const int kScriptNameIndex = kScriptIdIndex + kPointerSize;
10164 static const int kScriptNameOrSourceUrlIndex = 10165 static const int kScriptNameOrSourceUrlIndex =
10165 kScriptNameIndex + kPointerSize; 10166 kScriptNameIndex + kPointerSize;
10166 static const int kFunctionNameIndex = 10167 static const int kFunctionNameIndex =
10167 kScriptNameOrSourceUrlIndex + kPointerSize; 10168 kScriptNameOrSourceUrlIndex + kPointerSize;
10168 static const int kFlagIndex = kFunctionNameIndex + kPointerSize; 10169 static const int kFlagIndex = kFunctionNameIndex + kPointerSize;
10169 static const int kSize = kFlagIndex + kPointerSize; 10170 static const int kIdIndex = kFlagIndex + kPointerSize;
10171 static const int kSize = kIdIndex + kPointerSize;
10170 10172
10171 private: 10173 private:
10172 // Bit position in the flag, from least significant bit position. 10174 // Bit position in the flag, from least significant bit position.
10173 static const int kIsEvalBit = 0; 10175 static const int kIsEvalBit = 0;
10174 static const int kIsConstructorBit = 1; 10176 static const int kIsConstructorBit = 1;
10175 static const int kIsWasmBit = 2; 10177 static const int kIsWasmBit = 2;
10176 10178
10177 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo); 10179 DISALLOW_IMPLICIT_CONSTRUCTORS(StackFrameInfo);
10178 }; 10180 };
10179 10181
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
10299 } 10301 }
10300 }; 10302 };
10301 10303
10302 10304
10303 } // NOLINT, false-positive due to second-order macros. 10305 } // NOLINT, false-positive due to second-order macros.
10304 } // NOLINT, false-positive due to second-order macros. 10306 } // NOLINT, false-positive due to second-order macros.
10305 10307
10306 #include "src/objects/object-macros-undef.h" 10308 #include "src/objects/object-macros-undef.h"
10307 10309
10308 #endif // V8_OBJECTS_H_ 10310 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698