| 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/compiler/code-stub-assembler.h" | 10 #include "src/compiler/code-stub-assembler.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 void** value_out = reinterpret_cast<void**>(&code); | 269 void** value_out = reinterpret_cast<void**>(&code); |
| 270 Dispatch(isolate, key, value_out, &GetCodeDispatchCall); | 270 Dispatch(isolate, key, value_out, &GetCodeDispatchCall); |
| 271 return scope.CloseAndEscape(code); | 271 return scope.CloseAndEscape(code); |
| 272 } | 272 } |
| 273 | 273 |
| 274 | 274 |
| 275 // static | 275 // static |
| 276 void BinaryOpICStub::GenerateAheadOfTime(Isolate* isolate) { | 276 void BinaryOpICStub::GenerateAheadOfTime(Isolate* isolate) { |
| 277 // Generate the uninitialized versions of the stub. | 277 // Generate the uninitialized versions of the stub. |
| 278 for (int op = Token::BIT_OR; op <= Token::MOD; ++op) { | 278 for (int op = Token::BIT_OR; op <= Token::MOD; ++op) { |
| 279 BinaryOpICStub stub(isolate, static_cast<Token::Value>(op), Strength::WEAK); | 279 BinaryOpICStub stub(isolate, static_cast<Token::Value>(op)); |
| 280 stub.GetCode(); | 280 stub.GetCode(); |
| 281 } | 281 } |
| 282 | 282 |
| 283 // Generate special versions of the stub. | 283 // Generate special versions of the stub. |
| 284 BinaryOpICState::GenerateAheadOfTime(isolate, &GenerateAheadOfTime); | 284 BinaryOpICState::GenerateAheadOfTime(isolate, &GenerateAheadOfTime); |
| 285 } | 285 } |
| 286 | 286 |
| 287 | 287 |
| 288 void BinaryOpICStub::PrintState(std::ostream& os) const { // NOLINT | 288 void BinaryOpICStub::PrintState(std::ostream& os) const { // NOLINT |
| 289 os << state(); | 289 os << state(); |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 if (type->Is(Type::UntaggedPointer())) { | 988 if (type->Is(Type::UntaggedPointer())) { |
| 989 return Representation::External(); | 989 return Representation::External(); |
| 990 } | 990 } |
| 991 | 991 |
| 992 DCHECK(!type->Is(Type::Untagged())); | 992 DCHECK(!type->Is(Type::Untagged())); |
| 993 return Representation::Tagged(); | 993 return Representation::Tagged(); |
| 994 } | 994 } |
| 995 | 995 |
| 996 } // namespace internal | 996 } // namespace internal |
| 997 } // namespace v8 | 997 } // namespace v8 |
| OLD | NEW |