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

Side by Side Diff: src/handles.h

Issue 1148007: Merge bleeding_edge from version 2.1.3 up to revision 4205... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 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/globals.h ('k') | src/handles.cc » ('j') | src/heap.cc » ('J')
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, 265 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>,
266 Handle<JSArray> array); 266 Handle<JSArray> array);
267 267
268 // Get the JS object corresponding to the given script; create it 268 // Get the JS object corresponding to the given script; create it
269 // if none exists. 269 // if none exists.
270 Handle<JSValue> GetScriptWrapper(Handle<Script> script); 270 Handle<JSValue> GetScriptWrapper(Handle<Script> script);
271 271
272 // Script line number computations. 272 // Script line number computations.
273 void InitScriptLineEnds(Handle<Script> script); 273 void InitScriptLineEnds(Handle<Script> script);
274 int GetScriptLineNumber(Handle<Script> script, int code_position); 274 int GetScriptLineNumber(Handle<Script> script, int code_position);
275 // The safe version does not make heap allocations but may work much slower.
276 int GetScriptLineNumberSafe(Handle<Script> script, int code_position);
275 277
276 // Computes the enumerable keys from interceptors. Used for debug mirrors and 278 // Computes the enumerable keys from interceptors. Used for debug mirrors and
277 // by GetKeysInFixedArrayFor below. 279 // by GetKeysInFixedArrayFor below.
278 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSObject> receiver, 280 v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSObject> receiver,
279 Handle<JSObject> object); 281 Handle<JSObject> object);
280 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSObject> receiver, 282 v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSObject> receiver,
281 Handle<JSObject> object); 283 Handle<JSObject> object);
282 284
283 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS }; 285 enum KeyCollectionType { LOCAL_ONLY, INCLUDE_PROTOS };
284 286
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 private: 373 private:
372 bool has_been_transformed_; // Tells whether the object has been transformed. 374 bool has_been_transformed_; // Tells whether the object has been transformed.
373 int unused_property_fields_; // Captures the unused number of field. 375 int unused_property_fields_; // Captures the unused number of field.
374 Handle<JSObject> object_; // The object being optimized. 376 Handle<JSObject> object_; // The object being optimized.
375 }; 377 };
376 378
377 379
378 } } // namespace v8::internal 380 } } // namespace v8::internal
379 381
380 #endif // V8_HANDLES_H_ 382 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/handles.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698