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

Side by Side Diff: src/arguments.h

Issue 132193005: Merged r16772, r18000, r18030, r18298, r18319 into 3.21 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.21
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 | « no previous file | src/arguments.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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 */ 274 */
275 v8::Handle<v8::Value> Call(FunctionCallback f); 275 v8::Handle<v8::Value> Call(FunctionCallback f);
276 276
277 private: 277 private:
278 internal::Object** argv_; 278 internal::Object** argv_;
279 int argc_; 279 int argc_;
280 bool is_construct_call_; 280 bool is_construct_call_;
281 }; 281 };
282 282
283 283
284 double ClobberDoubleRegisters(double x1, double x2, double x3, double x4);
285
286
287 #ifdef DEBUG
288 #define CLOBBER_DOUBLE_REGISTERS() ClobberDoubleRegisters(1, 2, 3, 4);
289 #else
290 #define CLOBBER_DOUBLE_REGISTERS()
291 #endif
292
293
284 #define DECLARE_RUNTIME_FUNCTION(Type, Name) \ 294 #define DECLARE_RUNTIME_FUNCTION(Type, Name) \
285 Type Name(int args_length, Object** args_object, Isolate* isolate) 295 Type Name(int args_length, Object** args_object, Isolate* isolate)
286 296
287 #define RUNTIME_FUNCTION(Type, Name) \ 297 #define RUNTIME_FUNCTION(Type, Name) \
288 static Type __RT_impl_##Name(Arguments args, Isolate* isolate); \ 298 static Type __RT_impl_##Name(Arguments args, Isolate* isolate); \
289 Type Name(int args_length, Object** args_object, Isolate* isolate) { \ 299 Type Name(int args_length, Object** args_object, Isolate* isolate) { \
300 CLOBBER_DOUBLE_REGISTERS(); \
290 Arguments args(args_length, args_object); \ 301 Arguments args(args_length, args_object); \
291 return __RT_impl_##Name(args, isolate); \ 302 return __RT_impl_##Name(args, isolate); \
292 } \ 303 } \
293 static Type __RT_impl_##Name(Arguments args, Isolate* isolate) 304 static Type __RT_impl_##Name(Arguments args, Isolate* isolate)
294 305
295 #define RUNTIME_ARGUMENTS(isolate, args) \ 306 #define RUNTIME_ARGUMENTS(isolate, args) \
296 args.length(), args.arguments(), isolate 307 args.length(), args.arguments(), isolate
297 308
298 } } // namespace v8::internal 309 } } // namespace v8::internal
299 310
300 #endif // V8_ARGUMENTS_H_ 311 #endif // V8_ARGUMENTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/arguments.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698