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

Side by Side Diff: src/macro-assembler-ia32.cc

Issue 8039: - ip register cannot be used when accessing large constants in the instructio... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 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/macro-assembler-arm.cc ('k') | no next file » | 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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 mov(scratch, FieldOperand(scratch, offset)); 553 mov(scratch, FieldOperand(scratch, offset));
554 mov(scratch, FieldOperand(scratch, GlobalObject::kGlobalContextOffset)); 554 mov(scratch, FieldOperand(scratch, GlobalObject::kGlobalContextOffset));
555 555
556 // Check the context is a global context. 556 // Check the context is a global context.
557 if (FLAG_debug_code) { 557 if (FLAG_debug_code) {
558 push(scratch); 558 push(scratch);
559 // Read the first word and compare to global_context_map. 559 // Read the first word and compare to global_context_map.
560 mov(scratch, FieldOperand(scratch, HeapObject::kMapOffset)); 560 mov(scratch, FieldOperand(scratch, HeapObject::kMapOffset));
561 cmp(scratch, Factory::global_context_map()); 561 cmp(scratch, Factory::global_context_map());
562 Check(equal, "JSGlobalObject::global_context should be a global context."); 562 Check(equal, "JSGlobalObject::global_context should be a global context.");
563 pop(scratch); 563 pop(scratch);
564 } 564 }
565 565
566 // Check if both contexts are the same. 566 // Check if both contexts are the same.
567 cmp(scratch, FieldOperand(holder_reg, JSGlobalProxy::kContextOffset)); 567 cmp(scratch, FieldOperand(holder_reg, JSGlobalProxy::kContextOffset));
568 j(equal, &same_contexts, taken); 568 j(equal, &same_contexts, taken);
569 569
570 // Compare security tokens, save holder_reg on the stack so we can use it 570 // Compare security tokens, save holder_reg on the stack so we can use it
571 // as a temporary register. 571 // as a temporary register.
572 // 572 //
573 // TODO(119): avoid push(holder_reg)/pop(holder_reg) 573 // TODO(119): avoid push(holder_reg)/pop(holder_reg)
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 // Indicate that code has changed. 1005 // Indicate that code has changed.
1006 CPU::FlushICache(address_, size_); 1006 CPU::FlushICache(address_, size_);
1007 1007
1008 // Check that the code was patched as expected. 1008 // Check that the code was patched as expected.
1009 ASSERT(masm_.pc_ == address_ + size_); 1009 ASSERT(masm_.pc_ == address_ + size_);
1010 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 1010 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
1011 } 1011 }
1012 1012
1013 1013
1014 } } // namespace v8::internal 1014 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/macro-assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698