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

Side by Side Diff: src/d8.h

Issue 11970009: Make the Isolate parameter mandatory in Locker and Unlocker classes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Added TODO. Created 7 years, 11 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 | « samples/lineprocessor.cc ('k') | src/d8.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 static Persistent<Context> utility_context_; 374 static Persistent<Context> utility_context_;
375 static CounterMap* counter_map_; 375 static CounterMap* counter_map_;
376 // We statically allocate a set of local counters to be used if we 376 // We statically allocate a set of local counters to be used if we
377 // don't want to store the stats in a memory-mapped file 377 // don't want to store the stats in a memory-mapped file
378 static CounterCollection local_counters_; 378 static CounterCollection local_counters_;
379 static CounterCollection* counters_; 379 static CounterCollection* counters_;
380 static i::OS::MemoryMappedFile* counters_file_; 380 static i::OS::MemoryMappedFile* counters_file_;
381 static i::Mutex* context_mutex_; 381 static i::Mutex* context_mutex_;
382 382
383 static Counter* GetCounter(const char* name, bool is_histogram); 383 static Counter* GetCounter(const char* name, bool is_histogram);
384 static void InstallUtilityScript(); 384 static void InstallUtilityScript(Isolate* isolate);
385 #endif // V8_SHARED 385 #endif // V8_SHARED
386 static void Initialize(Isolate* isolate); 386 static void Initialize(Isolate* isolate);
387 static void InitializeDebugger(Isolate* isolate); 387 static void InitializeDebugger(Isolate* isolate);
388 static void RunShell(Isolate* isolate); 388 static void RunShell(Isolate* isolate);
389 static bool SetOptions(int argc, char* argv[]); 389 static bool SetOptions(int argc, char* argv[]);
390 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 390 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
391 static Handle<FunctionTemplate> CreateArrayBufferTemplate(InvocationCallback); 391 static Handle<FunctionTemplate> CreateArrayBufferTemplate(InvocationCallback);
392 static Handle<FunctionTemplate> CreateArrayTemplate(InvocationCallback); 392 static Handle<FunctionTemplate> CreateArrayTemplate(InvocationCallback);
393 static Handle<Value> CreateExternalArrayBuffer(Isolate* isolate, 393 static Handle<Value> CreateExternalArrayBuffer(Isolate* isolate,
394 Handle<Object> buffer, 394 Handle<Object> buffer,
(...skipping 10 matching lines...) Expand all
405 ExternalArrayType type, 405 ExternalArrayType type,
406 int32_t element_size); 406 int32_t element_size);
407 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); 407 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data);
408 }; 408 };
409 409
410 410
411 } // namespace v8 411 } // namespace v8
412 412
413 413
414 #endif // V8_D8_H_ 414 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « samples/lineprocessor.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698