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

Side by Side Diff: src/arm/codegen-arm.cc

Issue 2811033: [Isolates] Remove even more statics. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: rebase and address comments Created 10 years, 6 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 | « no previous file | src/assembler.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 9229 matching lines...) Expand 10 before | Expand all | Expand 10 after
9240 // regexp_data: RegExp data (FixedArray) 9240 // regexp_data: RegExp data (FixedArray)
9241 // Check that the number of captures fit in the static offsets vector buffer. 9241 // Check that the number of captures fit in the static offsets vector buffer.
9242 __ ldr(r2, 9242 __ ldr(r2,
9243 FieldMemOperand(regexp_data, JSRegExp::kIrregexpCaptureCountOffset)); 9243 FieldMemOperand(regexp_data, JSRegExp::kIrregexpCaptureCountOffset));
9244 // Calculate number of capture registers (number_of_captures + 1) * 2. This 9244 // Calculate number of capture registers (number_of_captures + 1) * 2. This
9245 // uses the asumption that smis are 2 * their untagged value. 9245 // uses the asumption that smis are 2 * their untagged value.
9246 ASSERT_EQ(0, kSmiTag); 9246 ASSERT_EQ(0, kSmiTag);
9247 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize); 9247 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize);
9248 __ add(r2, r2, Operand(2)); // r2 was a smi. 9248 __ add(r2, r2, Operand(2)); // r2 was a smi.
9249 // Check that the static offsets vector buffer is large enough. 9249 // Check that the static offsets vector buffer is large enough.
9250 __ cmp(r2, Operand(OffsetsVector::kStaticOffsetsVectorSize)); 9250 __ cmp(r2, Operand(Isolate::kJSRegexpStaticOffsetsVectorSize));
9251 __ b(hi, &runtime); 9251 __ b(hi, &runtime);
9252 9252
9253 // r2: Number of capture registers 9253 // r2: Number of capture registers
9254 // regexp_data: RegExp data (FixedArray) 9254 // regexp_data: RegExp data (FixedArray)
9255 // Check that the second argument is a string. 9255 // Check that the second argument is a string.
9256 __ ldr(subject, MemOperand(sp, kSubjectOffset)); 9256 __ ldr(subject, MemOperand(sp, kSubjectOffset));
9257 __ tst(subject, Operand(kSmiTagMask)); 9257 __ tst(subject, Operand(kSmiTagMask));
9258 __ b(eq, &runtime); 9258 __ b(eq, &runtime);
9259 Condition is_string = masm->IsObjectStringType(subject, r0); 9259 Condition is_string = masm->IsObjectStringType(subject, r0);
9260 __ b(NegateCondition(is_string), &runtime); 9260 __ b(NegateCondition(is_string), &runtime);
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
10700 __ bind(&string_add_runtime); 10700 __ bind(&string_add_runtime);
10701 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 10701 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
10702 } 10702 }
10703 10703
10704 10704
10705 #undef __ 10705 #undef __
10706 10706
10707 } } // namespace v8::internal 10707 } } // namespace v8::internal
10708 10708
10709 #endif // V8_TARGET_ARCH_ARM 10709 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698