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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 7039036: Fix calls of strict mode function with an implicit receiver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 9 years, 7 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/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 339
340 // Load the initial map from the global function. The registers 340 // Load the initial map from the global function. The registers
341 // function and map can be the same, function is then overwritten. 341 // function and map can be the same, function is then overwritten.
342 void LoadGlobalFunctionInitialMap(Register function, 342 void LoadGlobalFunctionInitialMap(Register function,
343 Register map, 343 Register map,
344 Register scratch); 344 Register scratch);
345 345
346 // --------------------------------------------------------------------------- 346 // ---------------------------------------------------------------------------
347 // JavaScript invokes 347 // JavaScript invokes
348 348
349 // Setup call kind marking in ecx. The method takes ecx as an
350 // explicit first parameter to make the code more readable at the
351 // call sites.
352 void SetCallKind(Register dst, CallKind kind);
353
349 // Invoke the JavaScript function code by either calling or jumping. 354 // Invoke the JavaScript function code by either calling or jumping.
350 void InvokeCode(Register code, 355 void InvokeCode(Register code,
351 const ParameterCount& expected, 356 const ParameterCount& expected,
352 const ParameterCount& actual, 357 const ParameterCount& actual,
353 InvokeFlag flag, 358 InvokeFlag flag,
354 const CallWrapper& call_wrapper = NullCallWrapper()); 359 const CallWrapper& call_wrapper = NullCallWrapper(),
360 CallKind call_kind = CALL_AS_METHOD);
355 361
356 void InvokeCode(Handle<Code> code, 362 void InvokeCode(Handle<Code> code,
357 const ParameterCount& expected, 363 const ParameterCount& expected,
358 const ParameterCount& actual, 364 const ParameterCount& actual,
359 RelocInfo::Mode rmode, 365 RelocInfo::Mode rmode,
360 InvokeFlag flag); 366 InvokeFlag flag,
367 CallKind call_kind = CALL_AS_METHOD);
361 368
362 // Invoke the JavaScript function in the given register. Changes the 369 // Invoke the JavaScript function in the given register. Changes the
363 // current context to the context in the function before invoking. 370 // current context to the context in the function before invoking.
364 void InvokeFunction(Register function, 371 void InvokeFunction(Register function,
365 const ParameterCount& actual, 372 const ParameterCount& actual,
366 InvokeFlag flag, 373 InvokeFlag flag,
367 const CallWrapper& call_wrapper = NullCallWrapper()); 374 const CallWrapper& call_wrapper = NullCallWrapper(),
375 CallKind call_kind = CALL_AS_METHOD);
368 376
369 void InvokeFunction(JSFunction* function, 377 void InvokeFunction(JSFunction* function,
370 const ParameterCount& actual, 378 const ParameterCount& actual,
371 InvokeFlag flag); 379 InvokeFlag flag);
372 380
373 void IsObjectJSObjectType(Register heap_object, 381 void IsObjectJSObjectType(Register heap_object,
374 Register map, 382 Register map,
375 Register scratch, 383 Register scratch,
376 Label* fail); 384 Label* fail);
377 385
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 RelocInfo::Mode rmode, 1029 RelocInfo::Mode rmode,
1022 Condition cond = al); 1030 Condition cond = al);
1023 1031
1024 // Helper functions for generating invokes. 1032 // Helper functions for generating invokes.
1025 void InvokePrologue(const ParameterCount& expected, 1033 void InvokePrologue(const ParameterCount& expected,
1026 const ParameterCount& actual, 1034 const ParameterCount& actual,
1027 Handle<Code> code_constant, 1035 Handle<Code> code_constant,
1028 Register code_reg, 1036 Register code_reg,
1029 Label* done, 1037 Label* done,
1030 InvokeFlag flag, 1038 InvokeFlag flag,
1031 const CallWrapper& call_wrapper = NullCallWrapper()); 1039 const CallWrapper& call_wrapper = NullCallWrapper(),
1040 CallKind call_kind = CALL_AS_METHOD);
1032 1041
1033 // Activation support. 1042 // Activation support.
1034 void EnterFrame(StackFrame::Type type); 1043 void EnterFrame(StackFrame::Type type);
1035 void LeaveFrame(StackFrame::Type type); 1044 void LeaveFrame(StackFrame::Type type);
1036 1045
1037 void InitializeNewString(Register string, 1046 void InitializeNewString(Register string,
1038 Register length, 1047 Register length,
1039 Heap::RootListIndex map_index, 1048 Heap::RootListIndex map_index,
1040 Register scratch1, 1049 Register scratch1,
1041 Register scratch2); 1050 Register scratch2);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1117 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1109 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1118 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1110 #else 1119 #else
1111 #define ACCESS_MASM(masm) masm-> 1120 #define ACCESS_MASM(masm) masm->
1112 #endif 1121 #endif
1113 1122
1114 1123
1115 } } // namespace v8::internal 1124 } } // namespace v8::internal
1116 1125
1117 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1126 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698