| 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 isolate(), outer, factory->undefined_value(), 2, args, false); | 493 isolate(), outer, factory->undefined_value(), 2, args, false); |
| 494 Handle<JSFunction> inner = Handle<JSFunction>::cast(result.ToHandleChecked()); | 494 Handle<JSFunction> inner = Handle<JSFunction>::cast(result.ToHandleChecked()); |
| 495 // Just to make sure nobody calls this... | 495 // Just to make sure nobody calls this... |
| 496 inner->set_code(isolate()->builtins()->builtin(Builtins::kIllegal)); | 496 inner->set_code(isolate()->builtins()->builtin(Builtins::kIllegal)); |
| 497 | 497 |
| 498 Zone zone; | 498 Zone zone; |
| 499 // Build a "hybrid" CompilationInfo for a JSFunction/CodeStub pair. | 499 // Build a "hybrid" CompilationInfo for a JSFunction/CodeStub pair. |
| 500 ParseInfo parse_info(&zone, inner); | 500 ParseInfo parse_info(&zone, inner); |
| 501 CompilationInfo info(&parse_info); | 501 CompilationInfo info(&parse_info); |
| 502 info.SetFunctionType(GetCallInterfaceDescriptor().GetFunctionType()); | 502 info.SetFunctionType(GetCallInterfaceDescriptor().GetFunctionType()); |
| 503 info.MarkAsContextSpecializing(); |
| 503 info.SetStub(this); | 504 info.SetStub(this); |
| 504 return info.GenerateCodeStub(); | 505 return info.GenerateCodeStub(); |
| 505 } | 506 } |
| 506 | 507 |
| 507 | 508 |
| 508 template<class StateType> | 509 template<class StateType> |
| 509 void HydrogenCodeStub::TraceTransition(StateType from, StateType to) { | 510 void HydrogenCodeStub::TraceTransition(StateType from, StateType to) { |
| 510 // Note: Although a no-op transition is semantically OK, it is hinting at a | 511 // Note: Although a no-op transition is semantically OK, it is hinting at a |
| 511 // bug somewhere in our state transition machinery. | 512 // bug somewhere in our state transition machinery. |
| 512 DCHECK(from != to); | 513 DCHECK(from != to); |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 | 1060 |
| 1060 if (type->Is(Type::UntaggedPointer())) { | 1061 if (type->Is(Type::UntaggedPointer())) { |
| 1061 return Representation::External(); | 1062 return Representation::External(); |
| 1062 } | 1063 } |
| 1063 | 1064 |
| 1064 DCHECK(!type->Is(Type::Untagged())); | 1065 DCHECK(!type->Is(Type::Untagged())); |
| 1065 return Representation::Tagged(); | 1066 return Representation::Tagged(); |
| 1066 } | 1067 } |
| 1067 } // namespace internal | 1068 } // namespace internal |
| 1068 } // namespace v8 | 1069 } // namespace v8 |
| OLD | NEW |