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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 Handle<JSFunction> inner = Handle<JSFunction>::cast(result.ToHandleChecked()); | 499 Handle<JSFunction> inner = Handle<JSFunction>::cast(result.ToHandleChecked()); |
500 // Just to make sure nobody calls this... | 500 // Just to make sure nobody calls this... |
501 inner->set_code(isolate()->builtins()->builtin(Builtins::kIllegal)); | 501 inner->set_code(isolate()->builtins()->builtin(Builtins::kIllegal)); |
502 | 502 |
503 Zone zone; | 503 Zone zone; |
504 // Build a "hybrid" CompilationInfo for a JSFunction/CodeStub pair. | 504 // Build a "hybrid" CompilationInfo for a JSFunction/CodeStub pair. |
505 ParseInfo parse_info(&zone, inner); | 505 ParseInfo parse_info(&zone, inner); |
506 CompilationInfo info(&parse_info); | 506 CompilationInfo info(&parse_info); |
507 info.SetFunctionType(GetCallInterfaceDescriptor().GetFunctionType()); | 507 info.SetFunctionType(GetCallInterfaceDescriptor().GetFunctionType()); |
508 info.MarkAsContextSpecializing(); | 508 info.MarkAsContextSpecializing(); |
| 509 info.MarkAsDeoptimizationEnabled(); |
509 info.SetStub(this); | 510 info.SetStub(this); |
510 return info.GenerateCodeStub(); | 511 return info.GenerateCodeStub(); |
511 } | 512 } |
512 | 513 |
513 | 514 |
514 template<class StateType> | 515 template<class StateType> |
515 void HydrogenCodeStub::TraceTransition(StateType from, StateType to) { | 516 void HydrogenCodeStub::TraceTransition(StateType from, StateType to) { |
516 // Note: Although a no-op transition is semantically OK, it is hinting at a | 517 // Note: Although a no-op transition is semantically OK, it is hinting at a |
517 // bug somewhere in our state transition machinery. | 518 // bug somewhere in our state transition machinery. |
518 DCHECK(from != to); | 519 DCHECK(from != to); |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 | 1080 |
1080 if (type->Is(Type::UntaggedPointer())) { | 1081 if (type->Is(Type::UntaggedPointer())) { |
1081 return Representation::External(); | 1082 return Representation::External(); |
1082 } | 1083 } |
1083 | 1084 |
1084 DCHECK(!type->Is(Type::Untagged())); | 1085 DCHECK(!type->Is(Type::Untagged())); |
1085 return Representation::Tagged(); | 1086 return Representation::Tagged(); |
1086 } | 1087 } |
1087 } // namespace internal | 1088 } // namespace internal |
1088 } // namespace v8 | 1089 } // namespace v8 |
OLD | NEW |