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

Side by Side Diff: src/x64/full-codegen-x64.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, 3 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/mips/full-codegen-mips.cc ('k') | test/mjsunit/regress/regress-2855.js » ('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 2989 matching lines...) Expand 10 before | Expand all | Expand 10 after
3000 // prototype is the un-modified String prototype. If not result is false. 3000 // prototype is the un-modified String prototype. If not result is false.
3001 __ movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset)); 3001 __ movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset));
3002 __ testq(rcx, Immediate(kSmiTagMask)); 3002 __ testq(rcx, Immediate(kSmiTagMask));
3003 __ j(zero, if_false); 3003 __ j(zero, if_false);
3004 __ movq(rcx, FieldOperand(rcx, HeapObject::kMapOffset)); 3004 __ movq(rcx, FieldOperand(rcx, HeapObject::kMapOffset));
3005 __ movq(rdx, Operand(rsi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 3005 __ movq(rdx, Operand(rsi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
3006 __ movq(rdx, FieldOperand(rdx, GlobalObject::kNativeContextOffset)); 3006 __ movq(rdx, FieldOperand(rdx, GlobalObject::kNativeContextOffset));
3007 __ cmpq(rcx, 3007 __ cmpq(rcx,
3008 ContextOperand(rdx, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX)); 3008 ContextOperand(rdx, Context::STRING_FUNCTION_PROTOTYPE_MAP_INDEX));
3009 __ j(not_equal, if_false); 3009 __ j(not_equal, if_false);
3010 // Set the bit in the map to indicate that it has been checked safe for
3011 // default valueOf and set true result.
3012 __ or_(FieldOperand(rbx, Map::kBitField2Offset),
3013 Immediate(1 << Map::kStringWrapperSafeForDefaultValueOf));
3014 __ jmp(if_true); 3010 __ jmp(if_true);
3015 3011
3016 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3012 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3017 context()->Plug(if_true, if_false); 3013 context()->Plug(if_true, if_false);
3018 } 3014 }
3019 3015
3020 3016
3021 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) { 3017 void FullCodeGenerator::EmitIsFunction(CallRuntime* expr) {
3022 ZoneList<Expression*>* args = expr->arguments(); 3018 ZoneList<Expression*>* args = expr->arguments();
3023 ASSERT(args->length() == 1); 3019 ASSERT(args->length() == 1);
(...skipping 1858 matching lines...) Expand 10 before | Expand all | Expand 10 after
4882 *context_length = 0; 4878 *context_length = 0;
4883 return previous_; 4879 return previous_;
4884 } 4880 }
4885 4881
4886 4882
4887 #undef __ 4883 #undef __
4888 4884
4889 } } // namespace v8::internal 4885 } } // namespace v8::internal
4890 4886
4891 #endif // V8_TARGET_ARCH_X64 4887 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | test/mjsunit/regress/regress-2855.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698