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

Side by Side Diff: src/accessors.cc

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/accessors.h ('k') | src/api.cc » ('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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 192
193 const AccessorDescriptor Accessors::ScriptName = { 193 const AccessorDescriptor Accessors::ScriptName = {
194 ScriptGetName, 194 ScriptGetName,
195 IllegalSetter, 195 IllegalSetter,
196 0 196 0
197 }; 197 };
198 198
199 199
200 // 200 //
201 // Accessors::ScriptId
202 //
203
204
205 Object* Accessors::ScriptGetId(Object* object, void*) {
206 Object* script = JSValue::cast(object)->value();
207 return Script::cast(script)->id();
208 }
209
210
211 const AccessorDescriptor Accessors::ScriptId = {
212 ScriptGetId,
213 IllegalSetter,
214 0
215 };
216
217
218 //
201 // Accessors::ScriptLineOffset 219 // Accessors::ScriptLineOffset
202 // 220 //
203 221
204 222
205 Object* Accessors::ScriptGetLineOffset(Object* object, void*) { 223 Object* Accessors::ScriptGetLineOffset(Object* object, void*) {
206 Object* script = JSValue::cast(object)->value(); 224 Object* script = JSValue::cast(object)->value();
207 return Script::cast(script)->line_offset(); 225 return Script::cast(script)->line_offset();
208 } 226 }
209 227
210 228
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 } 538 }
521 539
522 540
523 const AccessorDescriptor Accessors::ObjectPrototype = { 541 const AccessorDescriptor Accessors::ObjectPrototype = {
524 ObjectGetPrototype, 542 ObjectGetPrototype,
525 ObjectSetPrototype, 543 ObjectSetPrototype,
526 0 544 0
527 }; 545 };
528 546
529 } } // namespace v8::internal 547 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/accessors.h ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698