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

Side by Side Diff: src/objects.h

Issue 40317: Added unique id to all scripts (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/mirror-delay.js ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2532 matching lines...) Expand 10 before | Expand all | Expand 10 after
2543 2543
2544 // Script describes a script which has been added to the VM. 2544 // Script describes a script which has been added to the VM.
2545 class Script: public Struct { 2545 class Script: public Struct {
2546 public: 2546 public:
2547 // [source]: the script source. 2547 // [source]: the script source.
2548 DECL_ACCESSORS(source, Object) 2548 DECL_ACCESSORS(source, Object)
2549 2549
2550 // [name]: the script name. 2550 // [name]: the script name.
2551 DECL_ACCESSORS(name, Object) 2551 DECL_ACCESSORS(name, Object)
2552 2552
2553 // [id]: the script id.
2554 DECL_ACCESSORS(id, Object)
2555
2553 // [line_offset]: script line offset in resource from where it was extracted. 2556 // [line_offset]: script line offset in resource from where it was extracted.
2554 DECL_ACCESSORS(line_offset, Smi) 2557 DECL_ACCESSORS(line_offset, Smi)
2555 2558
2556 // [column_offset]: script column offset in resource from where it was 2559 // [column_offset]: script column offset in resource from where it was
2557 // extracted. 2560 // extracted.
2558 DECL_ACCESSORS(column_offset, Smi) 2561 DECL_ACCESSORS(column_offset, Smi)
2559 2562
2560 // [wrapper]: the wrapper cache. 2563 // [wrapper]: the wrapper cache.
2561 DECL_ACCESSORS(wrapper, Proxy) 2564 DECL_ACCESSORS(wrapper, Proxy)
2562 2565
(...skipping 13 matching lines...) Expand all
2576 void InitLineEnds(); 2579 void InitLineEnds();
2577 int GetLineNumber(int code_position); 2580 int GetLineNumber(int code_position);
2578 2581
2579 static const int kSourceOffset = HeapObject::kHeaderSize; 2582 static const int kSourceOffset = HeapObject::kHeaderSize;
2580 static const int kNameOffset = kSourceOffset + kPointerSize; 2583 static const int kNameOffset = kSourceOffset + kPointerSize;
2581 static const int kLineOffsetOffset = kNameOffset + kPointerSize; 2584 static const int kLineOffsetOffset = kNameOffset + kPointerSize;
2582 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; 2585 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize;
2583 static const int kWrapperOffset = kColumnOffsetOffset + kPointerSize; 2586 static const int kWrapperOffset = kColumnOffsetOffset + kPointerSize;
2584 static const int kTypeOffset = kWrapperOffset + kPointerSize; 2587 static const int kTypeOffset = kWrapperOffset + kPointerSize;
2585 static const int kLineEndsOffset = kTypeOffset + kPointerSize; 2588 static const int kLineEndsOffset = kTypeOffset + kPointerSize;
2586 static const int kSize = kLineEndsOffset + kPointerSize; 2589 static const int kIdOffset = kLineEndsOffset + kPointerSize;
2590 static const int kSize = kIdOffset + kPointerSize;
2587 2591
2588 private: 2592 private:
2589 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); 2593 DISALLOW_IMPLICIT_CONSTRUCTORS(Script);
2590 }; 2594 };
2591 2595
2592 2596
2593 // SharedFunctionInfo describes the JSFunction information that can be 2597 // SharedFunctionInfo describes the JSFunction information that can be
2594 // shared by multiple instances of the function. 2598 // shared by multiple instances of the function.
2595 class SharedFunctionInfo: public HeapObject { 2599 class SharedFunctionInfo: public HeapObject {
2596 public: 2600 public:
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
4264 } else { 4268 } else {
4265 value &= ~(1 << bit_position); 4269 value &= ~(1 << bit_position);
4266 } 4270 }
4267 return value; 4271 return value;
4268 } 4272 }
4269 }; 4273 };
4270 4274
4271 } } // namespace v8::internal 4275 } } // namespace v8::internal
4272 4276
4273 #endif // V8_OBJECTS_H_ 4277 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mirror-delay.js ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698