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

Side by Side Diff: src/factory.h

Issue 1077343002: [turbofan] Optimize loads of global constants in JSTypedLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/compiler/typer.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 // irregexp regexp and stores it in the regexp. 661 // irregexp regexp and stores it in the regexp.
662 void SetRegExpIrregexpData(Handle<JSRegExp> regexp, 662 void SetRegExpIrregexpData(Handle<JSRegExp> regexp,
663 JSRegExp::Type type, 663 JSRegExp::Type type,
664 Handle<String> source, 664 Handle<String> source,
665 JSRegExp::Flags flags, 665 JSRegExp::Flags flags,
666 int capture_count); 666 int capture_count);
667 667
668 // Returns the value for a known global constant (a property of the global 668 // Returns the value for a known global constant (a property of the global
669 // object which is neither configurable nor writable) like 'undefined'. 669 // object which is neither configurable nor writable) like 'undefined'.
670 // Returns a null handle when the given name is unknown. 670 // Returns a null handle when the given name is unknown.
671 Handle<Object> GlobalConstantFor(Handle<String> name); 671 Handle<Object> GlobalConstantFor(Handle<Name> name);
672 672
673 // Converts the given boolean condition to JavaScript boolean value. 673 // Converts the given boolean condition to JavaScript boolean value.
674 Handle<Object> ToBoolean(bool value); 674 Handle<Object> ToBoolean(bool value);
675 675
676 private: 676 private:
677 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } 677 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); }
678 678
679 // Creates a heap object based on the map. The fields of the heap object are 679 // Creates a heap object based on the map. The fields of the heap object are
680 // not initialized by New<>() functions. It's the responsibility of the caller 680 // not initialized by New<>() functions. It's the responsibility of the caller
681 // to do that. 681 // to do that.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 // Reinitialize a JSProxy into an (empty) JS object of respective type and 718 // Reinitialize a JSProxy into an (empty) JS object of respective type and
719 // size, but keeping the original prototype. The receiver must have at least 719 // size, but keeping the original prototype. The receiver must have at least
720 // the size of the new object. The object is reinitialized and behaves as an 720 // the size of the new object. The object is reinitialized and behaves as an
721 // object that has been freshly allocated. 721 // object that has been freshly allocated.
722 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 722 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
723 }; 723 };
724 724
725 } } // namespace v8::internal 725 } } // namespace v8::internal
726 726
727 #endif // V8_FACTORY_H_ 727 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698