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/factory.h

Issue 10417010: Run Crankshaft on a separate thread. (Closed) Base URL: https://chromiumcodereview.appspot.com/10387157
Patch Set: Set optimize_in_parallel to false by default. Created 8 years, 7 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
« no previous file with comments | « src/d8.cc ('k') | src/factory.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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 int capture_count); 482 int capture_count);
483 483
484 // Returns the value for a known global constant (a property of the global 484 // Returns the value for a known global constant (a property of the global
485 // object which is neither configurable nor writable) like 'undefined'. 485 // object which is neither configurable nor writable) like 'undefined'.
486 // Returns a null handle when the given name is unknown. 486 // Returns a null handle when the given name is unknown.
487 Handle<Object> GlobalConstantFor(Handle<String> name); 487 Handle<Object> GlobalConstantFor(Handle<String> name);
488 488
489 // Converts the given boolean condition to JavaScript boolean value. 489 // Converts the given boolean condition to JavaScript boolean value.
490 Handle<Object> ToBoolean(bool value); 490 Handle<Object> ToBoolean(bool value);
491 491
492 void CompileJSFunction(Handle<JSFunction> function);
493
492 private: 494 private:
493 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } 495 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); }
494 496
495 Handle<JSFunction> NewFunctionHelper(Handle<String> name, 497 Handle<JSFunction> NewFunctionHelper(Handle<String> name,
496 Handle<Object> prototype); 498 Handle<Object> prototype);
497 499
498 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( 500 Handle<JSFunction> NewFunctionWithoutPrototypeHelper(
499 Handle<String> name, 501 Handle<String> name,
500 LanguageMode language_mode); 502 LanguageMode language_mode);
501 503
502 Handle<DescriptorArray> CopyAppendCallbackDescriptors( 504 Handle<DescriptorArray> CopyAppendCallbackDescriptors(
503 Handle<DescriptorArray> array, 505 Handle<DescriptorArray> array,
504 Handle<Object> descriptors); 506 Handle<Object> descriptors);
505 507
506 // Create a new map cache. 508 // Create a new map cache.
507 Handle<MapCache> NewMapCache(int at_least_space_for); 509 Handle<MapCache> NewMapCache(int at_least_space_for);
508 510
509 // Update the map cache in the global context with (keys, map) 511 // Update the map cache in the global context with (keys, map)
510 Handle<MapCache> AddToMapCache(Handle<Context> context, 512 Handle<MapCache> AddToMapCache(Handle<Context> context,
511 Handle<FixedArray> keys, 513 Handle<FixedArray> keys,
512 Handle<Map> map); 514 Handle<Map> map);
513 }; 515 };
514 516
515 517
516 } } // namespace v8::internal 518 } } // namespace v8::internal
517 519
518 #endif // V8_FACTORY_H_ 520 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698