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

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

Issue 1650011: Port inlining of type checks in call ICs for API functions to x64 and arm (is... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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/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 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Generates code that verifies that the maps of objects in the 178 // Generates code that verifies that the maps of objects in the
179 // prototype chain of object hasn't changed since the code was 179 // prototype chain of object hasn't changed since the code was
180 // generated and branches to the miss label if any map has. If 180 // generated and branches to the miss label if any map has. If
181 // necessary the function also generates code for security check 181 // necessary the function also generates code for security check
182 // in case of global object holders. The scratch and holder 182 // in case of global object holders. The scratch and holder
183 // registers are always clobbered, but the object register is only 183 // registers are always clobbered, but the object register is only
184 // clobbered if it the same as the holder register. The function 184 // clobbered if it the same as the holder register. The function
185 // returns a register containing the holder - either object_reg or 185 // returns a register containing the holder - either object_reg or
186 // holder_reg. 186 // holder_reg.
187 // The function can optionally (when save_at_depth !=
188 // kInvalidProtoDepth) save the object at the given depth by moving
189 // it to [sp].
187 Register CheckMaps(JSObject* object, Register object_reg, 190 Register CheckMaps(JSObject* object, Register object_reg,
188 JSObject* holder, Register holder_reg, 191 JSObject* holder, Register holder_reg,
189 Register scratch, Label* miss); 192 Register scratch,
193 int save_at_depth,
194 Label* miss);
190 195
191 // Generate code for checking access rights - used for security checks 196 // Generate code for checking access rights - used for security checks
192 // on access to global objects across environments. The holder register 197 // on access to global objects across environments. The holder register
193 // is left untouched, whereas both scratch registers are clobbered. 198 // is left untouched, whereas both scratch registers are clobbered.
194 void CheckAccessGlobalProxy(Register holder_reg, 199 void CheckAccessGlobalProxy(Register holder_reg,
195 Register scratch, 200 Register scratch,
196 Label* miss); 201 Label* miss);
197 202
198 203
199 // --------------------------------------------------------------------------- 204 // ---------------------------------------------------------------------------
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 544 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
540 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 545 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
541 #else 546 #else
542 #define ACCESS_MASM(masm) masm-> 547 #define ACCESS_MASM(masm) masm->
543 #endif 548 #endif
544 549
545 550
546 } } // namespace v8::internal 551 } } // namespace v8::internal
547 552
548 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 553 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698