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/full-codegen-arm.cc

Issue 23060030: Temporarily disable optimization for StringWrappers to use native valueOf (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 7 years, 4 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/ia32/full-codegen-ia32.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 3061 matching lines...) Expand 10 before | Expand all | Expand 10 after
3072 // prototype is the un-modified String prototype. If not result is false. 3072 // prototype is the un-modified String prototype. If not result is false.
3073 __ ldr(r2, FieldMemOperand(r1, Map::kPrototypeOffset)); 3073 __ ldr(r2, FieldMemOperand(r1, Map::kPrototypeOffset));
3074 __ JumpIfSmi(r2, if_false); 3074 __ JumpIfSmi(r2, if_false);
3075 __ ldr(r2, FieldMemOperand(r2, HeapObject::kMapOffset)); 3075 __ ldr(r2, FieldMemOperand(r2, HeapObject::kMapOffset));
3076 __ ldr(r3, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); 3076 __ ldr(r3, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX));
3077 __ ldr(r3, FieldMemOperand(r3, GlobalObject::kNativeContextOffset)); 3077 __ ldr(r3, FieldMemOperand(r3, GlobalObject::kNativeContextOffset));
3078 __ ldr(r3, ContextOperand(r3, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX)); 3078 __ ldr(r3, ContextOperand(r3, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX));
3079 __ cmp(r2, r3); 3079 __ cmp(r2, r3);
3080 __ b(ne, if_false); 3080 __ b(ne, if_false);
3081 3081
3082 // Set the bit in the map to indicate that it has been checked safe for
3083 // default valueOf and set true result.
3084 __ ldrb(r2, FieldMemOperand(r1, Map::kBitField2Offset));
3085 __ orr(r2, r2, Operand(1 << Map::kStringWrapperSafeForDefaultValueOf));
3086 __ strb(r2, FieldMemOperand(r1, Map::kBitField2Offset));
3087 __ jmp(if_true); 3082 __ jmp(if_true);
3088 3083
3089 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3084 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3090 context()->Plug(if_true, if_false); 3085 context()->Plug(if_true, if_false);
3091 } 3086 }
3092 3087
3093 3088
3094 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) { 3089 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) {
3095 ZoneList<Expression*>* args = expr->arguments(); 3090 ZoneList<Expression*>* args = expr->arguments();
3096 ASSERT(args->length() == 1); 3091 ASSERT(args->length() == 1);
(...skipping 1795 matching lines...) Expand 10 before | Expand all | Expand 10 after
4892 *context_length = 0; 4887 *context_length = 0;
4893 return previous_; 4888 return previous_;
4894 } 4889 }
4895 4890
4896 4891
4897 #undef __ 4892 #undef __
4898 4893
4899 } } // namespace v8::internal 4894 } } // namespace v8::internal
4900 4895
4901 #endif // V8_TARGET_ARCH_ARM 4896 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698