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/code-factory.cc

Issue 900193002: Remove the obsolete OverwriteMode optimization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments. 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/code-factory.h ('k') | src/code-stubs.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
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 84
85 // static 85 // static
86 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) { 86 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) {
87 Handle<Code> code = CompareIC::GetUninitialized(isolate, op); 87 Handle<Code> code = CompareIC::GetUninitialized(isolate, op);
88 return Callable(code, BinaryOpDescriptor(isolate)); 88 return Callable(code, BinaryOpDescriptor(isolate));
89 } 89 }
90 90
91 91
92 // static 92 // static
93 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op, 93 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op) {
94 OverwriteMode mode) { 94 BinaryOpICStub stub(isolate, op);
95 BinaryOpICStub stub(isolate, op, mode);
96 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 95 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
97 } 96 }
98 97
99 98
100 // static 99 // static
101 Callable CodeFactory::ToBoolean(Isolate* isolate, 100 Callable CodeFactory::ToBoolean(Isolate* isolate,
102 ToBooleanStub::ResultMode mode, 101 ToBooleanStub::ResultMode mode,
103 ToBooleanStub::Types types) { 102 ToBooleanStub::Types types) {
104 ToBooleanStub stub(isolate, mode, types); 103 ToBooleanStub stub(isolate, mode, types);
105 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 104 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
(...skipping 24 matching lines...) Expand all
130 129
131 // static 130 // static
132 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, 131 Callable CodeFactory::CallFunction(Isolate* isolate, int argc,
133 CallFunctionFlags flags) { 132 CallFunctionFlags flags) {
134 CallFunctionStub stub(isolate, argc, flags); 133 CallFunctionStub stub(isolate, argc, flags);
135 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 134 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
136 } 135 }
137 136
138 } // namespace internal 137 } // namespace internal
139 } // namespace v8 138 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698