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

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

Issue 1224793002: Loads and stores to global vars are now made via property cell shortcuts installed into parent scri… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing 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/ast.cc ('k') | src/code-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 // 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_CODE_FACTORY_H_ 5 #ifndef V8_CODE_FACTORY_H_
6 #define V8_CODE_FACTORY_H_ 6 #define V8_CODE_FACTORY_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 InlineCacheState initialization_state); 54 InlineCacheState initialization_state);
55 55
56 static Callable CompareIC(Isolate* isolate, Token::Value op, 56 static Callable CompareIC(Isolate* isolate, Token::Value op,
57 Strength strength); 57 Strength strength);
58 58
59 static Callable BinaryOpIC(Isolate* isolate, Token::Value op, 59 static Callable BinaryOpIC(Isolate* isolate, Token::Value op,
60 Strength strength); 60 Strength strength);
61 61
62 // Code stubs. Add methods here as needed to reduce dependency on 62 // Code stubs. Add methods here as needed to reduce dependency on
63 // code-stubs.h. 63 // code-stubs.h.
64 static Callable LoadGlobalViaContext(Isolate* isolate, int depth);
65 static Callable StoreGlobalViaContext(Isolate* isolate, int depth,
66 LanguageMode language_mode);
67
64 static Callable Instanceof(Isolate* isolate, InstanceofStub::Flags flags); 68 static Callable Instanceof(Isolate* isolate, InstanceofStub::Flags flags);
65 69
66 static Callable ToBoolean( 70 static Callable ToBoolean(
67 Isolate* isolate, ToBooleanStub::ResultMode mode, 71 Isolate* isolate, ToBooleanStub::ResultMode mode,
68 ToBooleanStub::Types types = ToBooleanStub::Types()); 72 ToBooleanStub::Types types = ToBooleanStub::Types());
69 73
70 static Callable ToNumber(Isolate* isolate); 74 static Callable ToNumber(Isolate* isolate);
71 75
72 static Callable StringAdd(Isolate* isolate, StringAddFlags flags, 76 static Callable StringAdd(Isolate* isolate, StringAddFlags flags,
73 PretenureFlag pretenure_flag); 77 PretenureFlag pretenure_flag);
74 78
75 static Callable Typeof(Isolate* isolate); 79 static Callable Typeof(Isolate* isolate);
76 80
77 static Callable FastCloneShallowArray(Isolate* isolate); 81 static Callable FastCloneShallowArray(Isolate* isolate);
78 static Callable FastCloneShallowObject(Isolate* isolate, int length); 82 static Callable FastCloneShallowObject(Isolate* isolate, int length);
79 83
80 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, 84 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode,
81 FunctionKind kind); 85 FunctionKind kind);
82 86
83 static Callable AllocateHeapNumber(Isolate* isolate); 87 static Callable AllocateHeapNumber(Isolate* isolate);
84 88
85 static Callable CallFunction(Isolate* isolate, int argc, 89 static Callable CallFunction(Isolate* isolate, int argc,
86 CallFunctionFlags flags); 90 CallFunctionFlags flags);
87 }; 91 };
88 92
89 } // namespace internal 93 } // namespace internal
90 } // namespace v8 94 } // namespace v8
91 95
92 #endif // V8_CODE_FACTORY_H_ 96 #endif // V8_CODE_FACTORY_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/code-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698