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

Side by Side Diff: src/ic/ic-compiler.h

Issue 894683003: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased (w/ conflicts) Created 5 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
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-compiler.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_IC_IC_COMPILER_H_ 5 #ifndef V8_IC_IC_COMPILER_H_
6 #define V8_IC_IC_COMPILER_H_ 6 #define V8_IC_IC_COMPILER_H_
7 7
8 #include "src/ic/access-compiler.h" 8 #include "src/ic/access-compiler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 21 matching lines...) Expand all
32 int number_of_valid_maps, 32 int number_of_valid_maps,
33 Handle<Name> name, 33 Handle<Name> name,
34 ExtraICState extra_ic_state); 34 ExtraICState extra_ic_state);
35 35
36 // Keyed 36 // Keyed
37 static Handle<Code> ComputeKeyedLoadMonomorphicHandler( 37 static Handle<Code> ComputeKeyedLoadMonomorphicHandler(
38 Handle<Map> receiver_map); 38 Handle<Map> receiver_map);
39 static Handle<Code> ComputeKeyedLoadMonomorphic(Handle<Map> receiver_map); 39 static Handle<Code> ComputeKeyedLoadMonomorphic(Handle<Map> receiver_map);
40 40
41 static Handle<Code> ComputeKeyedStoreMonomorphic( 41 static Handle<Code> ComputeKeyedStoreMonomorphic(
42 Handle<Map> receiver_map, StrictMode strict_mode, 42 Handle<Map> receiver_map, LanguageMode language_mode,
43 KeyedAccessStoreMode store_mode); 43 KeyedAccessStoreMode store_mode);
44 static Handle<Code> ComputeKeyedLoadPolymorphic(MapHandleList* receiver_maps); 44 static Handle<Code> ComputeKeyedLoadPolymorphic(MapHandleList* receiver_maps);
45 static Handle<Code> ComputeKeyedStorePolymorphic( 45 static Handle<Code> ComputeKeyedStorePolymorphic(
46 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode, 46 MapHandleList* receiver_maps, KeyedAccessStoreMode store_mode,
47 StrictMode strict_mode); 47 LanguageMode language_mode);
48 48
49 // Compare nil 49 // Compare nil
50 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map, 50 static Handle<Code> ComputeCompareNil(Handle<Map> receiver_map,
51 CompareNilICStub* stub); 51 CompareNilICStub* stub);
52 52
53 // Helpers 53 // Helpers
54 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler 54 // TODO(verwaest): Move all uses of these helpers to the PropertyICCompiler
55 // and make the helpers private. 55 // and make the helpers private.
56 static void GenerateRuntimeSetProperty(MacroAssembler* masm, 56 static void GenerateRuntimeSetProperty(MacroAssembler* masm,
57 StrictMode strict_mode); 57 LanguageMode language_mode);
58 58
59 59
60 private: 60 private:
61 PropertyICCompiler(Isolate* isolate, Code::Kind kind, 61 PropertyICCompiler(Isolate* isolate, Code::Kind kind,
62 ExtraICState extra_ic_state = kNoExtraICState, 62 ExtraICState extra_ic_state = kNoExtraICState,
63 CacheHolderFlag cache_holder = kCacheOnReceiver) 63 CacheHolderFlag cache_holder = kCacheOnReceiver)
64 : PropertyAccessCompiler(isolate, kind, cache_holder), 64 : PropertyAccessCompiler(isolate, kind, cache_holder),
65 extra_ic_state_(extra_ic_state) {} 65 extra_ic_state_(extra_ic_state) {}
66 66
67 static Handle<Code> Find(Handle<Name> name, Handle<Map> stub_holder_map, 67 static Handle<Code> Find(Handle<Name> name, Handle<Map> stub_holder_map,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 const ExtraICState extra_ic_state_; 117 const ExtraICState extra_ic_state_;
118 }; 118 };
119 119
120 120
121 } 121 }
122 } // namespace v8::internal 122 } // namespace v8::internal
123 123
124 #endif // V8_IC_IC_COMPILER_H_ 124 #endif // V8_IC_IC_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698