OLD | NEW |
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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 void** value_out = reinterpret_cast<void**>(&code); | 261 void** value_out = reinterpret_cast<void**>(&code); |
262 Dispatch(isolate, key, value_out, &GetCodeDispatchCall); | 262 Dispatch(isolate, key, value_out, &GetCodeDispatchCall); |
263 return scope.CloseAndEscape(code); | 263 return scope.CloseAndEscape(code); |
264 } | 264 } |
265 | 265 |
266 | 266 |
267 // static | 267 // static |
268 void BinaryOpICStub::GenerateAheadOfTime(Isolate* isolate) { | 268 void BinaryOpICStub::GenerateAheadOfTime(Isolate* isolate) { |
269 // Generate the uninitialized versions of the stub. | 269 // Generate the uninitialized versions of the stub. |
270 for (int op = Token::BIT_OR; op <= Token::MOD; ++op) { | 270 for (int op = Token::BIT_OR; op <= Token::MOD; ++op) { |
271 BinaryOpICStub stub(isolate, static_cast<Token::Value>(op)); | 271 BinaryOpICStub stub(isolate, static_cast<Token::Value>(op), |
| 272 LanguageMode::SLOPPY); |
272 stub.GetCode(); | 273 stub.GetCode(); |
273 } | 274 } |
274 | 275 |
275 // Generate special versions of the stub. | 276 // Generate special versions of the stub. |
276 BinaryOpICState::GenerateAheadOfTime(isolate, &GenerateAheadOfTime); | 277 BinaryOpICState::GenerateAheadOfTime(isolate, &GenerateAheadOfTime); |
277 } | 278 } |
278 | 279 |
279 | 280 |
280 void BinaryOpICStub::PrintState(std::ostream& os) const { // NOLINT | 281 void BinaryOpICStub::PrintState(std::ostream& os) const { // NOLINT |
281 os << state(); | 282 os << state(); |
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 } | 979 } |
979 | 980 |
980 | 981 |
981 InternalArrayConstructorStub::InternalArrayConstructorStub( | 982 InternalArrayConstructorStub::InternalArrayConstructorStub( |
982 Isolate* isolate) : PlatformCodeStub(isolate) { | 983 Isolate* isolate) : PlatformCodeStub(isolate) { |
983 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 984 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
984 } | 985 } |
985 | 986 |
986 | 987 |
987 } } // namespace v8::internal | 988 } } // namespace v8::internal |
OLD | NEW |