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

Side by Side Diff: src/factory.h

Issue 2827008: [Isolates] Make instance variables of Heap non-static. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 6 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 | « no previous file | src/heap.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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // Installs interceptors on the instance. 'desc' is a function template, 319 // Installs interceptors on the instance. 'desc' is a function template,
320 // and instance is an object instance created by the function of this 320 // and instance is an object instance created by the function of this
321 // function template. 321 // function template.
322 static void ConfigureInstance(Handle<FunctionTemplateInfo> desc, 322 static void ConfigureInstance(Handle<FunctionTemplateInfo> desc,
323 Handle<JSObject> instance, 323 Handle<JSObject> instance,
324 bool* pending_exception); 324 bool* pending_exception);
325 325
326 #define ROOT_ACCESSOR(type, name, camel_name) \ 326 #define ROOT_ACCESSOR(type, name, camel_name) \
327 static inline Handle<type> name() { \ 327 static inline Handle<type> name() { \
328 return Handle<type>(BitCast<type**, Object**>( \ 328 return Handle<type>(BitCast<type**, Object**>( \
329 &Heap::roots_[Heap::k##camel_name##RootIndex])); \ 329 &Isolate::Current()->heap()->roots_[Heap::k##camel_name##RootIndex])); \
330 } 330 }
331 ROOT_LIST(ROOT_ACCESSOR) 331 ROOT_LIST(ROOT_ACCESSOR)
332 #undef ROOT_ACCESSOR_ACCESSOR 332 #undef ROOT_ACCESSOR_ACCESSOR
333 333
334 #define SYMBOL_ACCESSOR(name, str) \ 334 #define SYMBOL_ACCESSOR(name, str) \
335 static inline Handle<String> name() { \ 335 static inline Handle<String> name() { \
336 return Handle<String>(BitCast<String**, Object**>( \ 336 return Handle<String>(BitCast<String**, Object**>( \
337 &Heap::roots_[Heap::k##name##RootIndex])); \ 337 &Isolate::Current()->heap()->roots_[Heap::k##name##RootIndex])); \
338 } 338 }
339 SYMBOL_LIST(SYMBOL_ACCESSOR) 339 SYMBOL_LIST(SYMBOL_ACCESSOR)
340 #undef SYMBOL_ACCESSOR 340 #undef SYMBOL_ACCESSOR
341 341
342 static Handle<String> hidden_symbol() { 342 static Handle<String> hidden_symbol() {
343 return Handle<String>(&Heap::hidden_symbol_); 343 return Handle<String>(&Isolate::Current()->heap()->hidden_symbol_);
344 } 344 }
345 345
346 static Handle<SharedFunctionInfo> NewSharedFunctionInfo( 346 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(
347 Handle<String> name, int number_of_literals, Handle<Code> code); 347 Handle<String> name, int number_of_literals, Handle<Code> code);
348 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); 348 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name);
349 349
350 static Handle<NumberDictionary> DictionaryAtNumberPut( 350 static Handle<NumberDictionary> DictionaryAtNumberPut(
351 Handle<NumberDictionary>, 351 Handle<NumberDictionary>,
352 uint32_t key, 352 uint32_t key,
353 Handle<Object> value); 353 Handle<Object> value);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // Update the map cache in the global context with (keys, map) 394 // Update the map cache in the global context with (keys, map)
395 static Handle<MapCache> AddToMapCache(Handle<Context> context, 395 static Handle<MapCache> AddToMapCache(Handle<Context> context,
396 Handle<FixedArray> keys, 396 Handle<FixedArray> keys,
397 Handle<Map> map); 397 Handle<Map> map);
398 }; 398 };
399 399
400 400
401 } } // namespace v8::internal 401 } } // namespace v8::internal
402 402
403 #endif // V8_FACTORY_H_ 403 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698