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

Side by Side Diff: src/handles.h

Issue 12114054: Supporting AllocationSiteInfo for Nested arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Now with ports to arm and x64 Created 7 years, 10 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 Handle<JSObject> holder, 238 Handle<JSObject> holder,
239 Handle<String> name, 239 Handle<String> name,
240 PropertyAttributes* attributes); 240 PropertyAttributes* attributes);
241 241
242 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value); 242 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value);
243 243
244 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); 244 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index);
245 245
246 Handle<JSObject> Copy(Handle<JSObject> obj); 246 Handle<JSObject> Copy(Handle<JSObject> obj);
247 247
248 Handle<JSObject> DeepCopy(Handle<JSObject> obj);
249
248 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); 250 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info);
249 251
250 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, 252 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>,
251 Handle<JSArray> array); 253 Handle<JSArray> array);
252 254
253 // Get the JS object corresponding to the given script; create it 255 // Get the JS object corresponding to the given script; create it
254 // if none exists. 256 // if none exists.
255 Handle<JSValue> GetScriptWrapper(Handle<Script> script); 257 Handle<JSValue> GetScriptWrapper(Handle<Script> script);
256 258
257 // Script line number computations. Note that the line number is zero-based. 259 // Script line number computations. Note that the line number is zero-based.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 Handle<ObjectHashSet> ObjectHashSetAdd(Handle<ObjectHashSet> table, 319 Handle<ObjectHashSet> ObjectHashSetAdd(Handle<ObjectHashSet> table,
318 Handle<Object> key); 320 Handle<Object> key);
319 321
320 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table, 322 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table,
321 Handle<Object> key); 323 Handle<Object> key);
322 324
323 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, 325 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table,
324 Handle<Object> key, 326 Handle<Object> key,
325 Handle<Object> value); 327 Handle<Object> value);
326 328
329
danno 2013/02/08 13:44:38 unneeded whitespace change?
mvstanton 2013/02/11 11:11:24 Done.
327 class NoHandleAllocation BASE_EMBEDDED { 330 class NoHandleAllocation BASE_EMBEDDED {
328 public: 331 public:
329 #ifndef DEBUG 332 #ifndef DEBUG
330 NoHandleAllocation() {} 333 NoHandleAllocation() {}
331 ~NoHandleAllocation() {} 334 ~NoHandleAllocation() {}
332 #else 335 #else
333 inline NoHandleAllocation(); 336 inline NoHandleAllocation();
334 inline ~NoHandleAllocation(); 337 inline ~NoHandleAllocation();
335 private: 338 private:
336 int level_; 339 int level_;
(...skipping 25 matching lines...) Expand all
362 inline AllowHandleDereference(); 365 inline AllowHandleDereference();
363 inline ~AllowHandleDereference(); 366 inline ~AllowHandleDereference();
364 private: 367 private:
365 bool old_state_; 368 bool old_state_;
366 #endif 369 #endif
367 }; 370 };
368 371
369 } } // namespace v8::internal 372 } } // namespace v8::internal
370 373
371 #endif // V8_HANDLES_H_ 374 #endif // V8_HANDLES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698