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

Side by Side Diff: src/code-factory.cc

Issue 1227893005: TypeofMode replaces TypeofState and ContextualMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 5 years, 5 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/code-factory.h ('k') | src/codegen.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 14
15 // static 15 // static
16 Callable CodeFactory::LoadIC(Isolate* isolate, ContextualMode mode, 16 Callable CodeFactory::LoadIC(Isolate* isolate, TypeofMode typeof_mode,
17 LanguageMode language_mode) { 17 LanguageMode language_mode) {
18 return Callable( 18 return Callable(
19 LoadIC::initialize_stub( 19 LoadIC::initialize_stub(
20 isolate, LoadICState(mode, language_mode).GetExtraICState()), 20 isolate, LoadICState(typeof_mode, language_mode).GetExtraICState()),
21 LoadDescriptor(isolate)); 21 LoadDescriptor(isolate));
22 } 22 }
23 23
24 24
25 // static 25 // static
26 Callable CodeFactory::LoadICInOptimizedCode( 26 Callable CodeFactory::LoadICInOptimizedCode(
27 Isolate* isolate, ContextualMode mode, LanguageMode language_mode, 27 Isolate* isolate, TypeofMode typeof_mode, LanguageMode language_mode,
28 InlineCacheState initialization_state) { 28 InlineCacheState initialization_state) {
29 auto code = LoadIC::initialize_stub_in_optimized_code( 29 auto code = LoadIC::initialize_stub_in_optimized_code(
30 isolate, LoadICState(mode, language_mode).GetExtraICState(), 30 isolate, LoadICState(typeof_mode, language_mode).GetExtraICState(),
31 initialization_state); 31 initialization_state);
32 return Callable(code, LoadWithVectorDescriptor(isolate)); 32 return Callable(code, LoadWithVectorDescriptor(isolate));
33 } 33 }
34 34
35 35
36 // static 36 // static
37 Callable CodeFactory::KeyedLoadIC(Isolate* isolate, 37 Callable CodeFactory::KeyedLoadIC(Isolate* isolate,
38 LanguageMode language_mode) { 38 LanguageMode language_mode) {
39 ExtraICState state = is_strong(language_mode) ? LoadICState::kStrongModeState 39 ExtraICState state = is_strong(language_mode) ? LoadICState::kStrongModeState
40 : kNoExtraICState; 40 : kNoExtraICState;
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 // static 226 // static
227 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, 227 Callable CodeFactory::CallFunction(Isolate* isolate, int argc,
228 CallFunctionFlags flags) { 228 CallFunctionFlags flags) {
229 CallFunctionStub stub(isolate, argc, flags); 229 CallFunctionStub stub(isolate, argc, flags);
230 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 230 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
231 } 231 }
232 232
233 } // namespace internal 233 } // namespace internal
234 } // namespace v8 234 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698