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

Side by Side Diff: src/mips/full-codegen-mips.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 | « src/ia32/full-codegen-ia32.cc ('k') | src/x64/full-codegen-x64.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 3081 matching lines...) Expand 10 before | Expand all | Expand 10 after
3092 // If a valueOf property is not found on the object check that its 3092 // If a valueOf property is not found on the object check that its
3093 // prototype is the un-modified String prototype. If not result is false. 3093 // prototype is the un-modified String prototype. If not result is false.
3094 __ lw(a2, FieldMemOperand(a1, Map::kPrototypeOffset)); 3094 __ lw(a2, FieldMemOperand(a1, Map::kPrototypeOffset));
3095 __ JumpIfSmi(a2, if_false); 3095 __ JumpIfSmi(a2, if_false);
3096 __ lw(a2, FieldMemOperand(a2, HeapObject::kMapOffset)); 3096 __ lw(a2, FieldMemOperand(a2, HeapObject::kMapOffset));
3097 __ lw(a3, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); 3097 __ lw(a3, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX));
3098 __ lw(a3, FieldMemOperand(a3, GlobalObject::kNativeContextOffset)); 3098 __ lw(a3, FieldMemOperand(a3, GlobalObject::kNativeContextOffset));
3099 __ lw(a3, ContextOperand(a3, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX)); 3099 __ lw(a3, ContextOperand(a3, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX));
3100 __ Branch(if_false, ne, a2, Operand(a3)); 3100 __ Branch(if_false, ne, a2, Operand(a3));
3101 3101
3102 // Set the bit in the map to indicate that it has been checked safe for
3103 // default valueOf and set true result.
3104 __ lbu(a2, FieldMemOperand(a1, Map::kBitField2Offset));
3105 __ Or(a2, a2, Operand(1 << Map::kStringWrapperSafeForDefaultValueOf));
3106 __ sb(a2, FieldMemOperand(a1, Map::kBitField2Offset));
3107 __ jmp(if_true); 3102 __ jmp(if_true);
3108 3103
3109 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3104 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3110 context()->Plug(if_true, if_false); 3105 context()->Plug(if_true, if_false);
3111 } 3106 }
3112 3107
3113 3108
3114 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) { 3109 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) {
3115 ZoneList<Expression*>* args = expr->arguments(); 3110 ZoneList<Expression*>* args = expr->arguments();
3116 ASSERT(args->length() == 1); 3111 ASSERT(args->length() == 1);
(...skipping 1807 matching lines...) Expand 10 before | Expand all | Expand 10 after
4924 *context_length = 0; 4919 *context_length = 0;
4925 return previous_; 4920 return previous_;
4926 } 4921 }
4927 4922
4928 4923
4929 #undef __ 4924 #undef __
4930 4925
4931 } } // namespace v8::internal 4926 } } // namespace v8::internal
4932 4927
4933 #endif // V8_TARGET_ARCH_MIPS 4928 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698