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

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

Issue 1144183004: [strong] Refactor ObjectStrength into a replacement for strong boolean args (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback and rebase Created 5 years, 6 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-stubs.h ('k') | src/code-stubs-hydrogen.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 #include "src/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 void** value_out = reinterpret_cast<void**>(&code); 262 void** value_out = reinterpret_cast<void**>(&code);
263 Dispatch(isolate, key, value_out, &GetCodeDispatchCall); 263 Dispatch(isolate, key, value_out, &GetCodeDispatchCall);
264 return scope.CloseAndEscape(code); 264 return scope.CloseAndEscape(code);
265 } 265 }
266 266
267 267
268 // static 268 // static
269 void BinaryOpICStub::GenerateAheadOfTime(Isolate* isolate) { 269 void BinaryOpICStub::GenerateAheadOfTime(Isolate* isolate) {
270 // Generate the uninitialized versions of the stub. 270 // Generate the uninitialized versions of the stub.
271 for (int op = Token::BIT_OR; op <= Token::MOD; ++op) { 271 for (int op = Token::BIT_OR; op <= Token::MOD; ++op) {
272 BinaryOpICStub stub(isolate, static_cast<Token::Value>(op), 272 BinaryOpICStub stub(isolate, static_cast<Token::Value>(op), Strength::WEAK);
273 LanguageMode::SLOPPY);
274 stub.GetCode(); 273 stub.GetCode();
275 } 274 }
276 275
277 // Generate special versions of the stub. 276 // Generate special versions of the stub.
278 BinaryOpICState::GenerateAheadOfTime(isolate, &GenerateAheadOfTime); 277 BinaryOpICState::GenerateAheadOfTime(isolate, &GenerateAheadOfTime);
279 } 278 }
280 279
281 280
282 void BinaryOpICStub::PrintState(std::ostream& os) const { // NOLINT 281 void BinaryOpICStub::PrintState(std::ostream& os) const { // NOLINT
283 os << state(); 282 os << state();
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 1041
1043 1042
1044 InternalArrayConstructorStub::InternalArrayConstructorStub( 1043 InternalArrayConstructorStub::InternalArrayConstructorStub(
1045 Isolate* isolate) : PlatformCodeStub(isolate) { 1044 Isolate* isolate) : PlatformCodeStub(isolate) {
1046 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1045 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1047 } 1046 }
1048 1047
1049 1048
1050 } // namespace internal 1049 } // namespace internal
1051 } // namespace v8 1050 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698