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

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

Issue 8199004: Reimplement Function.prototype.bind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 years, 2 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/code-stubs-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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 // Support functions. 665 // Support functions.
666 666
667 // Try to get function prototype of a function and puts the value in 667 // Try to get function prototype of a function and puts the value in
668 // the result register. Checks that the function really is a 668 // the result register. Checks that the function really is a
669 // function and jumps to the miss label if the fast checks fail. The 669 // function and jumps to the miss label if the fast checks fail. The
670 // function register will be untouched; the other registers may be 670 // function register will be untouched; the other registers may be
671 // clobbered. 671 // clobbered.
672 void TryGetFunctionPrototype(Register function, 672 void TryGetFunctionPrototype(Register function,
673 Register result, 673 Register result,
674 Register scratch, 674 Register scratch,
675 Label* miss); 675 Label* miss,
676 bool miss_on_bound_function = false);
676 677
677 // Compare object type for heap object. heap_object contains a non-Smi 678 // Compare object type for heap object. heap_object contains a non-Smi
678 // whose object type should be compared with the given type. This both 679 // whose object type should be compared with the given type. This both
679 // sets the flags and leaves the object type in the type_reg register. 680 // sets the flags and leaves the object type in the type_reg register.
680 // It leaves the map in the map register (unless the type_reg and map register 681 // It leaves the map in the map register (unless the type_reg and map register
681 // are the same register). It leaves the heap object in the heap_object 682 // are the same register). It leaves the heap object in the heap_object
682 // register unless the heap_object register is the same register as one of the 683 // register unless the heap_object register is the same register as one of the
683 // other registers. 684 // other registers.
684 void CompareObjectType(Register heap_object, 685 void CompareObjectType(Register heap_object,
685 Register map, 686 Register map,
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1278 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1278 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1279 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1279 #else 1280 #else
1280 #define ACCESS_MASM(masm) masm-> 1281 #define ACCESS_MASM(masm) masm->
1281 #endif 1282 #endif
1282 1283
1283 1284
1284 } } // namespace v8::internal 1285 } } // namespace v8::internal
1285 1286
1286 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1287 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698