Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: src/api.cc

Issue 145133013: External Array renaming and boilerplate scrapping (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/api.h ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 bool Value::IsArrayBufferView() const { 2364 bool Value::IsArrayBufferView() const {
2365 return Utils::OpenHandle(this)->IsJSArrayBufferView(); 2365 return Utils::OpenHandle(this)->IsJSArrayBufferView();
2366 } 2366 }
2367 2367
2368 2368
2369 bool Value::IsTypedArray() const { 2369 bool Value::IsTypedArray() const {
2370 return Utils::OpenHandle(this)->IsJSTypedArray(); 2370 return Utils::OpenHandle(this)->IsJSTypedArray();
2371 } 2371 }
2372 2372
2373 2373
2374 #define TYPED_ARRAY_LIST(F) \ 2374 #define VALUE_IS_TYPED_ARRAY(Type, typeName, TYPE, ctype, size) \
2375 F(Uint8Array, kExternalUnsignedByteArray) \ 2375 bool Value::Is##Type##Array() const { \
2376 F(Int8Array, kExternalByteArray) \ 2376 i::Handle<i::Object> obj = Utils::OpenHandle(this); \
2377 F(Uint16Array, kExternalUnsignedShortArray) \ 2377 if (!obj->IsJSTypedArray()) return false; \
Sven Panne 2014/01/24 12:42:14 Perhaps use '&&' here...
2378 F(Int16Array, kExternalShortArray) \ 2378 return i::JSTypedArray::cast(*obj)->type() == kExternal##Type##Array; \
2379 F(Uint32Array, kExternalUnsignedIntArray) \
2380 F(Int32Array, kExternalIntArray) \
2381 F(Float32Array, kExternalFloatArray) \
2382 F(Float64Array, kExternalDoubleArray) \
2383 F(Uint8ClampedArray, kExternalPixelArray)
2384
2385
2386 #define VALUE_IS_TYPED_ARRAY(TypedArray, type_const) \
2387 bool Value::Is##TypedArray() const { \
2388 i::Handle<i::Object> obj = Utils::OpenHandle(this); \
2389 if (!obj->IsJSTypedArray()) return false; \
2390 return i::JSTypedArray::cast(*obj)->type() == type_const; \
2391 } 2379 }
2392 2380
2393 TYPED_ARRAY_LIST(VALUE_IS_TYPED_ARRAY) 2381 TYPED_ARRAYS(VALUE_IS_TYPED_ARRAY)
2394 2382
2395 #undef VALUE_IS_TYPED_ARRAY 2383 #undef VALUE_IS_TYPED_ARRAY
2396 2384
2397 2385
2398 bool Value::IsDataView() const { 2386 bool Value::IsDataView() const {
2399 return Utils::OpenHandle(this)->IsJSDataView(); 2387 return Utils::OpenHandle(this)->IsJSDataView();
2400 } 2388 }
2401 2389
2402 2390
2403 bool Value::IsObject() const { 2391 bool Value::IsObject() const {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2715 2703
2716 2704
2717 void v8::TypedArray::CheckCast(Value* that) { 2705 void v8::TypedArray::CheckCast(Value* that) {
2718 i::Handle<i::Object> obj = Utils::OpenHandle(that); 2706 i::Handle<i::Object> obj = Utils::OpenHandle(that);
2719 Utils::ApiCheck(obj->IsJSTypedArray(), 2707 Utils::ApiCheck(obj->IsJSTypedArray(),
2720 "v8::TypedArray::Cast()", 2708 "v8::TypedArray::Cast()",
2721 "Could not convert to TypedArray"); 2709 "Could not convert to TypedArray");
2722 } 2710 }
2723 2711
2724 2712
2725 #define CHECK_TYPED_ARRAY_CAST(ApiClass, typeConst) \ 2713 #define CHECK_TYPED_ARRAY_CAST(Type, typeName, TYPE, ctype, size) \
2726 void v8::ApiClass::CheckCast(Value* that) { \ 2714 void v8::Type##Array::CheckCast(Value* that) { \
2727 i::Handle<i::Object> obj = Utils::OpenHandle(that); \ 2715 i::Handle<i::Object> obj = Utils::OpenHandle(that); \
2728 Utils::ApiCheck(obj->IsJSTypedArray() && \ 2716 Utils::ApiCheck(obj->IsJSTypedArray() && \
2729 i::JSTypedArray::cast(*obj)->type() == typeConst, \ 2717 i::JSTypedArray::cast(*obj)->type() == \
2730 "v8::" #ApiClass "::Cast()", \ 2718 kExternal##Type##Array, \
2731 "Could not convert to " #ApiClass); \ 2719 "v8::" #Type "Array::Cast()", \
2720 "Could not convert to " #Type "Array"); \
2732 } 2721 }
2733 2722
2734 2723
2735 TYPED_ARRAY_LIST(CHECK_TYPED_ARRAY_CAST) 2724 TYPED_ARRAYS(CHECK_TYPED_ARRAY_CAST)
2736 2725
2737 #undef CHECK_TYPED_ARRAY_CAST 2726 #undef CHECK_TYPED_ARRAY_CAST
2738 2727
2739 2728
2740 void v8::DataView::CheckCast(Value* that) { 2729 void v8::DataView::CheckCast(Value* that) {
2741 i::Handle<i::Object> obj = Utils::OpenHandle(that); 2730 i::Handle<i::Object> obj = Utils::OpenHandle(that);
2742 Utils::ApiCheck(obj->IsJSDataView(), 2731 Utils::ApiCheck(obj->IsJSDataView(),
2743 "v8::DataView::Cast()", 2732 "v8::DataView::Cast()",
2744 "Could not convert to DataView"); 2733 "Could not convert to DataView");
2745 } 2734 }
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
3658 i::JSObject::DeleteHiddenProperty(self, key_string); 3647 i::JSObject::DeleteHiddenProperty(self, key_string);
3659 return true; 3648 return true;
3660 } 3649 }
3661 3650
3662 3651
3663 namespace { 3652 namespace {
3664 3653
3665 static i::ElementsKind GetElementsKindFromExternalArrayType( 3654 static i::ElementsKind GetElementsKindFromExternalArrayType(
3666 ExternalArrayType array_type) { 3655 ExternalArrayType array_type) {
3667 switch (array_type) { 3656 switch (array_type) {
3668 case kExternalByteArray: 3657 #define ARRAY_TYPE_TO_ELEMENTS_KIND(Type, type, TYPE, ctype, size) \
3669 return i::EXTERNAL_BYTE_ELEMENTS; 3658 case kExternal##Type##Array: \
3670 break; 3659 return i::EXTERNAL_##TYPE##_ELEMENTS;
3671 case kExternalUnsignedByteArray: 3660
3672 return i::EXTERNAL_UNSIGNED_BYTE_ELEMENTS; 3661 TYPED_ARRAYS(ARRAY_TYPE_TO_ELEMENTS_KIND)
3673 break; 3662 #undef ARRAY_TYPE_TO_ELEMENTS_KIND
3674 case kExternalShortArray:
3675 return i::EXTERNAL_SHORT_ELEMENTS;
3676 break;
3677 case kExternalUnsignedShortArray:
3678 return i::EXTERNAL_UNSIGNED_SHORT_ELEMENTS;
3679 break;
3680 case kExternalIntArray:
3681 return i::EXTERNAL_INT_ELEMENTS;
3682 break;
3683 case kExternalUnsignedIntArray:
3684 return i::EXTERNAL_UNSIGNED_INT_ELEMENTS;
3685 break;
3686 case kExternalFloatArray:
3687 return i::EXTERNAL_FLOAT_ELEMENTS;
3688 break;
3689 case kExternalDoubleArray:
3690 return i::EXTERNAL_DOUBLE_ELEMENTS;
3691 break;
3692 case kExternalPixelArray:
3693 return i::EXTERNAL_PIXEL_ELEMENTS;
3694 break;
3695 } 3663 }
3696 UNREACHABLE(); 3664 UNREACHABLE();
3697 return i::DICTIONARY_ELEMENTS; 3665 return i::DICTIONARY_ELEMENTS;
3698 } 3666 }
3699 3667
3700 3668
3701 void PrepareExternalArrayElements(i::Handle<i::JSObject> object, 3669 void PrepareExternalArrayElements(i::Handle<i::JSObject> object,
3702 void* data, 3670 void* data,
3703 ExternalArrayType array_type, 3671 ExternalArrayType array_type,
3704 int length) { 3672 int length) {
(...skipping 12 matching lines...) Expand all
3717 3685
3718 } // namespace 3686 } // namespace
3719 3687
3720 3688
3721 void v8::Object::SetIndexedPropertiesToPixelData(uint8_t* data, int length) { 3689 void v8::Object::SetIndexedPropertiesToPixelData(uint8_t* data, int length) {
3722 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); 3690 i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
3723 ON_BAILOUT(isolate, "v8::SetElementsToPixelData()", return); 3691 ON_BAILOUT(isolate, "v8::SetElementsToPixelData()", return);
3724 ENTER_V8(isolate); 3692 ENTER_V8(isolate);
3725 i::HandleScope scope(isolate); 3693 i::HandleScope scope(isolate);
3726 if (!Utils::ApiCheck(length >= 0 && 3694 if (!Utils::ApiCheck(length >= 0 &&
3727 length <= i::ExternalPixelArray::kMaxLength, 3695 length <= i::ExternalUint8ClampedArray::kMaxLength,
3728 "v8::Object::SetIndexedPropertiesToPixelData()", 3696 "v8::Object::SetIndexedPropertiesToPixelData()",
3729 "length exceeds max acceptable value")) { 3697 "length exceeds max acceptable value")) {
3730 return; 3698 return;
3731 } 3699 }
3732 i::Handle<i::JSObject> self = Utils::OpenHandle(this); 3700 i::Handle<i::JSObject> self = Utils::OpenHandle(this);
3733 if (!Utils::ApiCheck(!self->IsJSArray(), 3701 if (!Utils::ApiCheck(!self->IsJSArray(),
3734 "v8::Object::SetIndexedPropertiesToPixelData()", 3702 "v8::Object::SetIndexedPropertiesToPixelData()",
3735 "JSArray is not supported")) { 3703 "JSArray is not supported")) {
3736 return; 3704 return;
3737 } 3705 }
3738 PrepareExternalArrayElements(self, data, kExternalPixelArray, length); 3706 PrepareExternalArrayElements(self, data, kExternalUint8ClampedArray, length);
3739 } 3707 }
3740 3708
3741 3709
3742 bool v8::Object::HasIndexedPropertiesInPixelData() { 3710 bool v8::Object::HasIndexedPropertiesInPixelData() {
3743 i::Handle<i::JSObject> self = Utils::OpenHandle(this); 3711 i::Handle<i::JSObject> self = Utils::OpenHandle(this);
3744 ON_BAILOUT(self->GetIsolate(), "v8::HasIndexedPropertiesInPixelData()", 3712 ON_BAILOUT(self->GetIsolate(), "v8::HasIndexedPropertiesInPixelData()",
3745 return false); 3713 return false);
3746 return self->HasExternalPixelElements(); 3714 return self->HasExternalUint8ClampedElements();
3747 } 3715 }
3748 3716
3749 3717
3750 uint8_t* v8::Object::GetIndexedPropertiesPixelData() { 3718 uint8_t* v8::Object::GetIndexedPropertiesPixelData() {
3751 i::Handle<i::JSObject> self = Utils::OpenHandle(this); 3719 i::Handle<i::JSObject> self = Utils::OpenHandle(this);
3752 ON_BAILOUT(self->GetIsolate(), "v8::GetIndexedPropertiesPixelData()", 3720 ON_BAILOUT(self->GetIsolate(), "v8::GetIndexedPropertiesPixelData()",
3753 return NULL); 3721 return NULL);
3754 if (self->HasExternalPixelElements()) { 3722 if (self->HasExternalUint8ClampedElements()) {
3755 return i::ExternalPixelArray::cast(self->elements())-> 3723 return i::ExternalUint8ClampedArray::cast(self->elements())->
3756 external_pixel_pointer(); 3724 external_uint8_clamped_pointer();
3757 } else { 3725 } else {
3758 return NULL; 3726 return NULL;
3759 } 3727 }
3760 } 3728 }
3761 3729
3762 3730
3763 int v8::Object::GetIndexedPropertiesPixelDataLength() { 3731 int v8::Object::GetIndexedPropertiesPixelDataLength() {
3764 i::Handle<i::JSObject> self = Utils::OpenHandle(this); 3732 i::Handle<i::JSObject> self = Utils::OpenHandle(this);
3765 ON_BAILOUT(self->GetIsolate(), "v8::GetIndexedPropertiesPixelDataLength()", 3733 ON_BAILOUT(self->GetIsolate(), "v8::GetIndexedPropertiesPixelDataLength()",
3766 return -1); 3734 return -1);
3767 if (self->HasExternalPixelElements()) { 3735 if (self->HasExternalUint8ClampedElements()) {
3768 return i::ExternalPixelArray::cast(self->elements())->length(); 3736 return i::ExternalUint8ClampedArray::cast(self->elements())->length();
3769 } else { 3737 } else {
3770 return -1; 3738 return -1;
3771 } 3739 }
3772 } 3740 }
3773 3741
3774 3742
3775 void v8::Object::SetIndexedPropertiesToExternalArrayData( 3743 void v8::Object::SetIndexedPropertiesToExternalArrayData(
3776 void* data, 3744 void* data,
3777 ExternalArrayType array_type, 3745 ExternalArrayType array_type,
3778 int length) { 3746 int length) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
3816 } 3784 }
3817 } 3785 }
3818 3786
3819 3787
3820 ExternalArrayType v8::Object::GetIndexedPropertiesExternalArrayDataType() { 3788 ExternalArrayType v8::Object::GetIndexedPropertiesExternalArrayDataType() {
3821 i::Handle<i::JSObject> self = Utils::OpenHandle(this); 3789 i::Handle<i::JSObject> self = Utils::OpenHandle(this);
3822 ON_BAILOUT(self->GetIsolate(), 3790 ON_BAILOUT(self->GetIsolate(),
3823 "v8::GetIndexedPropertiesExternalArrayDataType()", 3791 "v8::GetIndexedPropertiesExternalArrayDataType()",
3824 return static_cast<ExternalArrayType>(-1)); 3792 return static_cast<ExternalArrayType>(-1));
3825 switch (self->elements()->map()->instance_type()) { 3793 switch (self->elements()->map()->instance_type()) {
3826 case i::EXTERNAL_BYTE_ARRAY_TYPE: 3794 #define INSTANCE_TYPE_TO_ARRAY_TYPE(Type, type, TYPE, ctype, size) \
3827 return kExternalByteArray; 3795 case i::EXTERNAL_##TYPE##_ARRAY_TYPE: \
3828 case i::EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: 3796 return kExternal##Type##Array;
3829 return kExternalUnsignedByteArray; 3797 TYPED_ARRAYS(INSTANCE_TYPE_TO_ARRAY_TYPE)
3830 case i::EXTERNAL_SHORT_ARRAY_TYPE: 3798 #undef INSTANCE_TYPE_TO_ARRAY_TYPE
3831 return kExternalShortArray;
3832 case i::EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE:
3833 return kExternalUnsignedShortArray;
3834 case i::EXTERNAL_INT_ARRAY_TYPE:
3835 return kExternalIntArray;
3836 case i::EXTERNAL_UNSIGNED_INT_ARRAY_TYPE:
3837 return kExternalUnsignedIntArray;
3838 case i::EXTERNAL_FLOAT_ARRAY_TYPE:
3839 return kExternalFloatArray;
3840 case i::EXTERNAL_DOUBLE_ARRAY_TYPE:
3841 return kExternalDoubleArray;
3842 case i::EXTERNAL_PIXEL_ARRAY_TYPE:
3843 return kExternalPixelArray;
3844 default: 3799 default:
3845 return static_cast<ExternalArrayType>(-1); 3800 return static_cast<ExternalArrayType>(-1);
3846 } 3801 }
3847 } 3802 }
3848 3803
3849 3804
3850 int v8::Object::GetIndexedPropertiesExternalArrayDataLength() { 3805 int v8::Object::GetIndexedPropertiesExternalArrayDataLength() {
3851 i::Handle<i::JSObject> self = Utils::OpenHandle(this); 3806 i::Handle<i::JSObject> self = Utils::OpenHandle(this);
3852 ON_BAILOUT(self->GetIsolate(), 3807 ON_BAILOUT(self->GetIsolate(),
3853 "v8::GetIndexedPropertiesExternalArrayDataLength()", 3808 "v8::GetIndexedPropertiesExternalArrayDataLength()",
(...skipping 2157 matching lines...) Expand 10 before | Expand all | Expand 10 after
6011 5966
6012 i::Handle<i::ExternalArray> elements = 5967 i::Handle<i::ExternalArray> elements =
6013 isolate->factory()->NewExternalArray( 5968 isolate->factory()->NewExternalArray(
6014 static_cast<int>(length), array_type, 5969 static_cast<int>(length), array_type,
6015 static_cast<uint8_t*>(buffer->backing_store()) + byte_offset); 5970 static_cast<uint8_t*>(buffer->backing_store()) + byte_offset);
6016 obj->set_elements(*elements); 5971 obj->set_elements(*elements);
6017 return obj; 5972 return obj;
6018 } 5973 }
6019 5974
6020 5975
6021 #define TYPED_ARRAY_NEW(TypedArray, element_type, array_type, elements_kind) \ 5976 #define TYPED_ARRAY_NEW(Type, type, TYPE, ctype, size) \
6022 Local<TypedArray> TypedArray::New(Handle<ArrayBuffer> array_buffer, \ 5977 Local<Type##Array> Type##Array::New(Handle<ArrayBuffer> array_buffer, \
6023 size_t byte_offset, size_t length) { \ 5978 size_t byte_offset, size_t length) { \
6024 i::Isolate* isolate = i::Isolate::Current(); \ 5979 i::Isolate* isolate = i::Isolate::Current(); \
6025 EnsureInitializedForIsolate(isolate, \ 5980 EnsureInitializedForIsolate(isolate, \
6026 "v8::" #TypedArray "::New(Handle<ArrayBuffer>, size_t, size_t)"); \ 5981 "v8::" #Type "Array::New(Handle<ArrayBuffer>, size_t, size_t)"); \
6027 LOG_API(isolate, \ 5982 LOG_API(isolate, \
6028 "v8::" #TypedArray "::New(Handle<ArrayBuffer>, size_t, size_t)"); \ 5983 "v8::" #Type "Array::New(Handle<ArrayBuffer>, size_t, size_t)"); \
6029 ENTER_V8(isolate); \ 5984 ENTER_V8(isolate); \
6030 i::Handle<i::JSTypedArray> obj = \ 5985 i::Handle<i::JSTypedArray> obj = \
6031 NewTypedArray<element_type, array_type, elements_kind>( \ 5986 NewTypedArray<ctype, v8::kExternal##Type##Array, \
5987 i::EXTERNAL_##TYPE##_ELEMENTS>( \
6032 isolate, array_buffer, byte_offset, length); \ 5988 isolate, array_buffer, byte_offset, length); \
6033 return Utils::ToLocal##TypedArray(obj); \ 5989 return Utils::ToLocal##Type##Array(obj); \
6034 } 5990 }
6035 5991
6036 5992
6037 TYPED_ARRAY_NEW(Uint8Array, uint8_t, kExternalUnsignedByteArray, 5993 TYPED_ARRAYS(TYPED_ARRAY_NEW)
6038 i::EXTERNAL_UNSIGNED_BYTE_ELEMENTS)
6039 TYPED_ARRAY_NEW(Uint8ClampedArray, uint8_t, kExternalPixelArray,
6040 i::EXTERNAL_PIXEL_ELEMENTS)
6041 TYPED_ARRAY_NEW(Int8Array, int8_t, kExternalByteArray,
6042 i::EXTERNAL_BYTE_ELEMENTS)
6043 TYPED_ARRAY_NEW(Uint16Array, uint16_t, kExternalUnsignedShortArray,
6044 i::EXTERNAL_UNSIGNED_SHORT_ELEMENTS)
6045 TYPED_ARRAY_NEW(Int16Array, int16_t, kExternalShortArray,
6046 i::EXTERNAL_SHORT_ELEMENTS)
6047 TYPED_ARRAY_NEW(Uint32Array, uint32_t, kExternalUnsignedIntArray,
6048 i::EXTERNAL_UNSIGNED_INT_ELEMENTS)
6049 TYPED_ARRAY_NEW(Int32Array, int32_t, kExternalIntArray,
6050 i::EXTERNAL_INT_ELEMENTS)
6051 TYPED_ARRAY_NEW(Float32Array, float, kExternalFloatArray,
6052 i::EXTERNAL_FLOAT_ELEMENTS)
6053 TYPED_ARRAY_NEW(Float64Array, double, kExternalDoubleArray,
6054 i::EXTERNAL_DOUBLE_ELEMENTS)
6055
6056 #undef TYPED_ARRAY_NEW 5994 #undef TYPED_ARRAY_NEW
6057 5995
6058 Local<DataView> DataView::New(Handle<ArrayBuffer> array_buffer, 5996 Local<DataView> DataView::New(Handle<ArrayBuffer> array_buffer,
6059 size_t byte_offset, size_t byte_length) { 5997 size_t byte_offset, size_t byte_length) {
6060 i::Isolate* isolate = i::Isolate::Current(); 5998 i::Isolate* isolate = i::Isolate::Current();
6061 EnsureInitializedForIsolate( 5999 EnsureInitializedForIsolate(
6062 isolate, "v8::DataView::New(void*, size_t, size_t)"); 6000 isolate, "v8::DataView::New(void*, size_t, size_t)");
6063 LOG_API(isolate, "v8::DataView::New(void*, size_t, size_t)"); 6001 LOG_API(isolate, "v8::DataView::New(void*, size_t, size_t)");
6064 ENTER_V8(isolate); 6002 ENTER_V8(isolate);
6065 i::Handle<i::JSDataView> obj = isolate->factory()->NewJSDataView(); 6003 i::Handle<i::JSDataView> obj = isolate->factory()->NewJSDataView();
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
7454 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7392 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7455 Address callback_address = 7393 Address callback_address =
7456 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7394 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7457 VMState<EXTERNAL> state(isolate); 7395 VMState<EXTERNAL> state(isolate);
7458 ExternalCallbackScope call_scope(isolate, callback_address); 7396 ExternalCallbackScope call_scope(isolate, callback_address);
7459 callback(info); 7397 callback(info);
7460 } 7398 }
7461 7399
7462 7400
7463 } } // namespace v8::internal 7401 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.h ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698