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

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

Issue 131363008: A64: Synchronize with r15922. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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
« no previous file with comments | « src/a64/lithium-codegen-a64.cc ('k') | src/a64/stub-cache-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2857 matching lines...) Expand 10 before | Expand all | Expand 10 after
2868 Str(x10, MemOperand(x11)); 2868 Str(x10, MemOperand(x11));
2869 } 2869 }
2870 2870
2871 2871
2872 void MacroAssembler::Allocate(int object_size, 2872 void MacroAssembler::Allocate(int object_size,
2873 Register result, 2873 Register result,
2874 Register scratch1, 2874 Register scratch1,
2875 Register scratch2, 2875 Register scratch2,
2876 Label* gc_required, 2876 Label* gc_required,
2877 AllocationFlags flags) { 2877 AllocationFlags flags) {
2878 ASSERT(object_size <= Page::kMaxNonCodeHeapObjectSize);
2878 if (!FLAG_inline_new) { 2879 if (!FLAG_inline_new) {
2879 if (emit_debug_code()) { 2880 if (emit_debug_code()) {
2880 // Trash the registers to simulate an allocation failure. 2881 // Trash the registers to simulate an allocation failure.
2881 // We apply salt to the original zap value to easily spot the values. 2882 // We apply salt to the original zap value to easily spot the values.
2882 Mov(result, (kDebugZapValue & ~0xffL) | 0x11L); 2883 Mov(result, (kDebugZapValue & ~0xffL) | 0x11L);
2883 Mov(scratch1, (kDebugZapValue & ~0xffL) | 0x21L); 2884 Mov(scratch1, (kDebugZapValue & ~0xffL) | 0x21L);
2884 Mov(scratch2, (kDebugZapValue & ~0xffL) | 0x21L); 2885 Mov(scratch2, (kDebugZapValue & ~0xffL) | 0x21L);
2885 } 2886 }
2886 B(gc_required); 2887 B(gc_required);
2887 return; 2888 return;
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after
4726 } 4727 }
4727 } 4728 }
4728 4729
4729 4730
4730 #undef __ 4731 #undef __
4731 4732
4732 4733
4733 } } // namespace v8::internal 4734 } } // namespace v8::internal
4734 4735
4735 #endif // V8_TARGET_ARCH_A64 4736 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/lithium-codegen-a64.cc ('k') | src/a64/stub-cache-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698