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

Side by Side Diff: src/objects.h

Issue 1858773004: Revert of Correctly annotate eval origin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 6463 matching lines...) Expand 10 before | Expand all | Expand 10 after
6474 // [type]: the script type. 6474 // [type]: the script type.
6475 DECL_INT_ACCESSORS(type) 6475 DECL_INT_ACCESSORS(type)
6476 6476
6477 // [line_ends]: FixedArray of line ends positions. 6477 // [line_ends]: FixedArray of line ends positions.
6478 DECL_ACCESSORS(line_ends, Object) 6478 DECL_ACCESSORS(line_ends, Object)
6479 6479
6480 // [eval_from_shared]: for eval scripts the shared function info for the 6480 // [eval_from_shared]: for eval scripts the shared function info for the
6481 // function from which eval was called. 6481 // function from which eval was called.
6482 DECL_ACCESSORS(eval_from_shared, Object) 6482 DECL_ACCESSORS(eval_from_shared, Object)
6483 6483
6484 // [eval_from_position]: the source position in the code for the 6484 // [eval_from_instructions_offset]: the instruction offset in the code for the
6485 // function from which eval was called. 6485 // function from which eval was called where eval was called.
6486 DECL_INT_ACCESSORS(eval_from_position) 6486 DECL_INT_ACCESSORS(eval_from_instructions_offset)
6487 6487
6488 // [shared_function_infos]: weak fixed array containing all shared 6488 // [shared_function_infos]: weak fixed array containing all shared
6489 // function infos created from this script. 6489 // function infos created from this script.
6490 DECL_ACCESSORS(shared_function_infos, Object) 6490 DECL_ACCESSORS(shared_function_infos, Object)
6491 6491
6492 // [flags]: Holds an exciting bitfield. 6492 // [flags]: Holds an exciting bitfield.
6493 DECL_INT_ACCESSORS(flags) 6493 DECL_INT_ACCESSORS(flags)
6494 6494
6495 // [source_url]: sourceURL from magic comment 6495 // [source_url]: sourceURL from magic comment
6496 DECL_ACCESSORS(source_url, Object) 6496 DECL_ACCESSORS(source_url, Object)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
6563 static const int kSourceOffset = HeapObject::kHeaderSize; 6563 static const int kSourceOffset = HeapObject::kHeaderSize;
6564 static const int kNameOffset = kSourceOffset + kPointerSize; 6564 static const int kNameOffset = kSourceOffset + kPointerSize;
6565 static const int kLineOffsetOffset = kNameOffset + kPointerSize; 6565 static const int kLineOffsetOffset = kNameOffset + kPointerSize;
6566 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; 6566 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize;
6567 static const int kContextOffset = kColumnOffsetOffset + kPointerSize; 6567 static const int kContextOffset = kColumnOffsetOffset + kPointerSize;
6568 static const int kWrapperOffset = kContextOffset + kPointerSize; 6568 static const int kWrapperOffset = kContextOffset + kPointerSize;
6569 static const int kTypeOffset = kWrapperOffset + kPointerSize; 6569 static const int kTypeOffset = kWrapperOffset + kPointerSize;
6570 static const int kLineEndsOffset = kTypeOffset + kPointerSize; 6570 static const int kLineEndsOffset = kTypeOffset + kPointerSize;
6571 static const int kIdOffset = kLineEndsOffset + kPointerSize; 6571 static const int kIdOffset = kLineEndsOffset + kPointerSize;
6572 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; 6572 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize;
6573 static const int kEvalFromPositionOffset = 6573 static const int kEvalFrominstructionsOffsetOffset =
6574 kEvalFromSharedOffset + kPointerSize; 6574 kEvalFromSharedOffset + kPointerSize;
6575 static const int kSharedFunctionInfosOffset = 6575 static const int kSharedFunctionInfosOffset =
6576 kEvalFromPositionOffset + kPointerSize; 6576 kEvalFrominstructionsOffsetOffset + kPointerSize;
6577 static const int kFlagsOffset = kSharedFunctionInfosOffset + kPointerSize; 6577 static const int kFlagsOffset = kSharedFunctionInfosOffset + kPointerSize;
6578 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize; 6578 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize;
6579 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize; 6579 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize;
6580 static const int kSize = kSourceMappingUrlOffset + kPointerSize; 6580 static const int kSize = kSourceMappingUrlOffset + kPointerSize;
6581 6581
6582 private: 6582 private:
6583 int GetLineNumberWithArray(int code_pos); 6583 int GetLineNumberWithArray(int code_pos);
6584 6584
6585 // Bit positions in the flags field. 6585 // Bit positions in the flags field.
6586 static const int kCompilationTypeBit = 0; 6586 static const int kCompilationTypeBit = 0;
(...skipping 4331 matching lines...) Expand 10 before | Expand all | Expand 10 after
10918 } 10918 }
10919 return value; 10919 return value;
10920 } 10920 }
10921 }; 10921 };
10922 10922
10923 10923
10924 } // NOLINT, false-positive due to second-order macros. 10924 } // NOLINT, false-positive due to second-order macros.
10925 } // NOLINT, false-positive due to second-order macros. 10925 } // NOLINT, false-positive due to second-order macros.
10926 10926
10927 #endif // V8_OBJECTS_H_ 10927 #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