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

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

Issue 17895002: The check for internalized strings relied on the fact that we had less (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More comments Created 7 years, 5 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/arm/macro-assembler-arm.h ('k') | src/ia32/code-stubs-ia32.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 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after
3082 and_(scratch1, first, Operand(second)); 3082 and_(scratch1, first, Operand(second));
3083 JumpIfSmi(scratch1, failure); 3083 JumpIfSmi(scratch1, failure);
3084 JumpIfNonSmisNotBothSequentialAsciiStrings(first, 3084 JumpIfNonSmisNotBothSequentialAsciiStrings(first,
3085 second, 3085 second,
3086 scratch1, 3086 scratch1,
3087 scratch2, 3087 scratch2,
3088 failure); 3088 failure);
3089 } 3089 }
3090 3090
3091 3091
3092 void MacroAssembler::JumpIfNotUniqueName(Register reg,
3093 Label* not_unique_name) {
3094 STATIC_ASSERT(((SYMBOL_TYPE - 1) & kIsInternalizedMask) == kInternalizedTag);
3095 cmp(reg, Operand(kInternalizedTag));
3096 b(lt, not_unique_name);
3097 cmp(reg, Operand(SYMBOL_TYPE));
3098 b(gt, not_unique_name);
3099 }
3100
3101
3092 // Allocates a heap number or jumps to the need_gc label if the young space 3102 // Allocates a heap number or jumps to the need_gc label if the young space
3093 // is full and a scavenge is needed. 3103 // is full and a scavenge is needed.
3094 void MacroAssembler::AllocateHeapNumber(Register result, 3104 void MacroAssembler::AllocateHeapNumber(Register result,
3095 Register scratch1, 3105 Register scratch1,
3096 Register scratch2, 3106 Register scratch2,
3097 Register heap_number_map, 3107 Register heap_number_map,
3098 Label* gc_required, 3108 Label* gc_required,
3099 TaggingMode tagging_mode) { 3109 TaggingMode tagging_mode) {
3100 // Allocate an object in the heap for the heap number and tag it as a heap 3110 // Allocate an object in the heap for the heap number and tag it as a heap
3101 // object. 3111 // object.
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
3816 void CodePatcher::EmitCondition(Condition cond) { 3826 void CodePatcher::EmitCondition(Condition cond) {
3817 Instr instr = Assembler::instr_at(masm_.pc_); 3827 Instr instr = Assembler::instr_at(masm_.pc_);
3818 instr = (instr & ~kCondMask) | cond; 3828 instr = (instr & ~kCondMask) | cond;
3819 masm_.emit(instr); 3829 masm_.emit(instr);
3820 } 3830 }
3821 3831
3822 3832
3823 } } // namespace v8::internal 3833 } } // namespace v8::internal
3824 3834
3825 #endif // V8_TARGET_ARCH_ARM 3835 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698