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

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

Issue 12210143: Refactor RegExpStub to check lazily. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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
« src/ia32/code-stubs-ia32.cc ('K') | « src/x64/code-stubs-x64.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 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 j(equal, &ok, Label::kNear); 467 j(equal, &ok, Label::kNear);
468 Abort("JSObject with fast elements map has slow elements"); 468 Abort("JSObject with fast elements map has slow elements");
469 bind(&ok); 469 bind(&ok);
470 } 470 }
471 } 471 }
472 472
473 473
474 void MacroAssembler::Check(Condition cc, const char* msg) { 474 void MacroAssembler::Check(Condition cc, const char* msg) {
475 Label L; 475 Label L;
476 j(cc, &L, Label::kNear); 476 j(cc, &L, Label::kNear);
477 int3();
ulan 2013/02/13 14:35:44 Leftover debug code?
477 Abort(msg); 478 Abort(msg);
478 // Control will not return here. 479 // Control will not return here.
479 bind(&L); 480 bind(&L);
480 } 481 }
481 482
482 483
483 void MacroAssembler::CheckStackAlignment() { 484 void MacroAssembler::CheckStackAlignment() {
484 int frame_alignment = OS::ActivationFrameAlignment(); 485 int frame_alignment = OS::ActivationFrameAlignment();
485 int frame_alignment_mask = frame_alignment - 1; 486 int frame_alignment_mask = frame_alignment - 1;
486 if (frame_alignment > kPointerSize) { 487 if (frame_alignment > kPointerSize) {
(...skipping 4132 matching lines...) Expand 10 before | Expand all | Expand 10 after
4619 j(greater, &no_info_available); 4620 j(greater, &no_info_available);
4620 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 4621 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize),
4621 Heap::kAllocationSiteInfoMapRootIndex); 4622 Heap::kAllocationSiteInfoMapRootIndex);
4622 bind(&no_info_available); 4623 bind(&no_info_available);
4623 } 4624 }
4624 4625
4625 4626
4626 } } // namespace v8::internal 4627 } } // namespace v8::internal
4627 4628
4628 #endif // V8_TARGET_ARCH_X64 4629 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ia32/code-stubs-ia32.cc ('K') | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698