| OLD | NEW | 
|---|
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 898   IC ic(IC::NO_EXTRA_FRAME); | 898   IC ic(IC::NO_EXTRA_FRAME); | 
| 899   ASSERT(ic.target()->is_load_stub() || ic.target()->is_keyed_load_stub()); | 899   ASSERT(ic.target()->is_load_stub() || ic.target()->is_keyed_load_stub()); | 
| 900   if (!ic.SlowIsContextual()) return HEAP->undefined_value(); | 900   if (!ic.SlowIsContextual()) return HEAP->undefined_value(); | 
| 901 | 901 | 
| 902   // Throw a reference error. | 902   // Throw a reference error. | 
| 903   HandleScope scope; | 903   HandleScope scope; | 
| 904   Handle<String> name_handle(name); | 904   Handle<String> name_handle(name); | 
| 905   Handle<Object> error = | 905   Handle<Object> error = | 
| 906       Factory::NewReferenceError("not_defined", | 906       Factory::NewReferenceError("not_defined", | 
| 907                                   HandleVector(&name_handle, 1)); | 907                                   HandleVector(&name_handle, 1)); | 
| 908   return Top::Throw(*error); | 908   return Isolate::Current()->Throw(*error); | 
| 909 } | 909 } | 
| 910 | 910 | 
| 911 | 911 | 
| 912 static Object* LoadWithInterceptor(Arguments* args, | 912 static Object* LoadWithInterceptor(Arguments* args, | 
| 913                                    PropertyAttributes* attrs) { | 913                                    PropertyAttributes* attrs) { | 
| 914   Handle<String> name_handle = args->at<String>(0); | 914   Handle<String> name_handle = args->at<String>(0); | 
| 915   Handle<InterceptorInfo> interceptor_info = args->at<InterceptorInfo>(1); | 915   Handle<InterceptorInfo> interceptor_info = args->at<InterceptorInfo>(1); | 
| 916   ASSERT(kAccessorInfoOffsetInInterceptorArgs == 2); | 916   ASSERT(kAccessorInfoOffsetInInterceptorArgs == 2); | 
| 917   Handle<JSObject> receiver_handle = args->at<JSObject>(2); | 917   Handle<JSObject> receiver_handle = args->at<JSObject>(2); | 
| 918   Handle<JSObject> holder_handle = args->at<JSObject>(3); | 918   Handle<JSObject> holder_handle = args->at<JSObject>(3); | 
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1324       expected_receiver_type_ = | 1324       expected_receiver_type_ = | 
| 1325           FunctionTemplateInfo::cast(signature->receiver()); | 1325           FunctionTemplateInfo::cast(signature->receiver()); | 
| 1326     } | 1326     } | 
| 1327   } | 1327   } | 
| 1328 | 1328 | 
| 1329   is_simple_api_call_ = true; | 1329   is_simple_api_call_ = true; | 
| 1330 } | 1330 } | 
| 1331 | 1331 | 
| 1332 | 1332 | 
| 1333 } }  // namespace v8::internal | 1333 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|