| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 TraceTransition(old_state, state); | 461 TraceTransition(old_state, state); |
| 462 set_sub_minor_key(TypesBits::update(sub_minor_key(), state.ToIntegral())); | 462 set_sub_minor_key(TypesBits::update(sub_minor_key(), state.ToIntegral())); |
| 463 } | 463 } |
| 464 | 464 |
| 465 | 465 |
| 466 namespace { | 466 namespace { |
| 467 | 467 |
| 468 Handle<JSFunction> GetFunction(Isolate* isolate, const char* name) { | 468 Handle<JSFunction> GetFunction(Isolate* isolate, const char* name) { |
| 469 v8::ExtensionConfiguration no_extensions; | 469 v8::ExtensionConfiguration no_extensions; |
| 470 Handle<Context> ctx = isolate->bootstrapper()->CreateEnvironment( | 470 Handle<Context> ctx = isolate->bootstrapper()->CreateEnvironment( |
| 471 MaybeHandle<JSGlobalProxy>(), v8::Handle<v8::ObjectTemplate>(), | 471 MaybeHandle<JSGlobalProxy>(), v8::Local<v8::ObjectTemplate>(), |
| 472 &no_extensions); | 472 &no_extensions); |
| 473 Handle<JSBuiltinsObject> builtins = handle(ctx->builtins()); | 473 Handle<JSBuiltinsObject> builtins = handle(ctx->builtins()); |
| 474 MaybeHandle<Object> fun = Object::GetProperty(isolate, builtins, name); | 474 MaybeHandle<Object> fun = Object::GetProperty(isolate, builtins, name); |
| 475 Handle<JSFunction> function = Handle<JSFunction>::cast(fun.ToHandleChecked()); | 475 Handle<JSFunction> function = Handle<JSFunction>::cast(fun.ToHandleChecked()); |
| 476 DCHECK(!function->IsUndefined() && | 476 DCHECK(!function->IsUndefined() && |
| 477 "JavaScript implementation of stub not found"); | 477 "JavaScript implementation of stub not found"); |
| 478 return function; | 478 return function; |
| 479 } | 479 } |
| 480 } // namespace | 480 } // namespace |
| 481 | 481 |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1061 | 1061 |
| 1062 if (type->Is(Type::UntaggedPointer())) { | 1062 if (type->Is(Type::UntaggedPointer())) { |
| 1063 return Representation::External(); | 1063 return Representation::External(); |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 DCHECK(!type->Is(Type::Untagged())); | 1066 DCHECK(!type->Is(Type::Untagged())); |
| 1067 return Representation::Tagged(); | 1067 return Representation::Tagged(); |
| 1068 } | 1068 } |
| 1069 } // namespace internal | 1069 } // namespace internal |
| 1070 } // namespace v8 | 1070 } // namespace v8 |
| OLD | NEW |