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

Side by Side Diff: src/stub-cache.cc

Issue 16337005: Deprecate FACTORY helper macro. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/string-stream.cc ('k') | src/type-info.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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 // Note that both keyed and non-keyed loads may end up here, so we 1184 // Note that both keyed and non-keyed loads may end up here, so we
1185 // can't use either LoadIC or KeyedLoadIC constructors. 1185 // can't use either LoadIC or KeyedLoadIC constructors.
1186 IC ic(IC::NO_EXTRA_FRAME, isolate); 1186 IC ic(IC::NO_EXTRA_FRAME, isolate);
1187 ASSERT(ic.target()->is_load_stub() || ic.target()->is_keyed_load_stub()); 1187 ASSERT(ic.target()->is_load_stub() || ic.target()->is_keyed_load_stub());
1188 if (!ic.SlowIsUndeclaredGlobal()) return HEAP->undefined_value(); 1188 if (!ic.SlowIsUndeclaredGlobal()) return HEAP->undefined_value();
1189 1189
1190 // Throw a reference error. 1190 // Throw a reference error.
1191 HandleScope scope(isolate); 1191 HandleScope scope(isolate);
1192 Handle<Name> name_handle(name); 1192 Handle<Name> name_handle(name);
1193 Handle<Object> error = 1193 Handle<Object> error =
1194 FACTORY->NewReferenceError("not_defined", 1194 isolate->factory()->NewReferenceError("not_defined",
1195 HandleVector(&name_handle, 1)); 1195 HandleVector(&name_handle, 1));
1196 return isolate->Throw(*error); 1196 return isolate->Throw(*error);
1197 } 1197 }
1198 1198
1199 1199
1200 static MaybeObject* LoadWithInterceptor(Arguments* args, 1200 static MaybeObject* LoadWithInterceptor(Arguments* args,
1201 PropertyAttributes* attrs) { 1201 PropertyAttributes* attrs) {
1202 typedef PropertyCallbackArguments PCA; 1202 typedef PropertyCallbackArguments PCA;
1203 static const int kArgsOffset = kAccessorInfoOffsetInInterceptorArgs; 1203 static const int kArgsOffset = kAccessorInfoOffsetInInterceptorArgs;
1204 Handle<Name> name_handle = args->at<Name>(0); 1204 Handle<Name> name_handle = args->at<Name>(0);
1205 Handle<InterceptorInfo> interceptor_info = args->at<InterceptorInfo>(1); 1205 Handle<InterceptorInfo> interceptor_info = args->at<InterceptorInfo>(1);
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
2104 Handle<FunctionTemplateInfo>( 2104 Handle<FunctionTemplateInfo>(
2105 FunctionTemplateInfo::cast(signature->receiver())); 2105 FunctionTemplateInfo::cast(signature->receiver()));
2106 } 2106 }
2107 } 2107 }
2108 2108
2109 is_simple_api_call_ = true; 2109 is_simple_api_call_ = true;
2110 } 2110 }
2111 2111
2112 2112
2113 } } // namespace v8::internal 2113 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/string-stream.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698