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

Side by Side Diff: src/mips/ic-mips.cc

Issue 148503002: A64: Synchronize with r15545. (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/mips/full-codegen-mips.cc ('k') | src/mips/lithium-codegen-mips.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 11 matching lines...) Expand all
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 28
29 29
30 #include "v8.h" 30 #include "v8.h"
31 31
32 #if defined(V8_TARGET_ARCH_MIPS) 32 #if V8_TARGET_ARCH_MIPS
33 33
34 #include "codegen.h" 34 #include "codegen.h"
35 #include "code-stubs.h" 35 #include "code-stubs.h"
36 #include "ic-inl.h" 36 #include "ic-inl.h"
37 #include "runtime.h" 37 #include "runtime.h"
38 #include "stub-cache.h" 38 #include "stub-cache.h"
39 39
40 namespace v8 { 40 namespace v8 {
41 namespace internal { 41 namespace internal {
42 42
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 __ GetObjectType(key, map, hash); 319 __ GetObjectType(key, map, hash);
320 __ Branch(not_unique, hi, hash, Operand(LAST_UNIQUE_NAME_TYPE)); 320 __ Branch(not_unique, hi, hash, Operand(LAST_UNIQUE_NAME_TYPE));
321 STATIC_ASSERT(LAST_UNIQUE_NAME_TYPE == FIRST_NONSTRING_TYPE); 321 STATIC_ASSERT(LAST_UNIQUE_NAME_TYPE == FIRST_NONSTRING_TYPE);
322 __ Branch(&unique, eq, hash, Operand(LAST_UNIQUE_NAME_TYPE)); 322 __ Branch(&unique, eq, hash, Operand(LAST_UNIQUE_NAME_TYPE));
323 323
324 // Is the string an array index, with cached numeric value? 324 // Is the string an array index, with cached numeric value?
325 __ lw(hash, FieldMemOperand(key, Name::kHashFieldOffset)); 325 __ lw(hash, FieldMemOperand(key, Name::kHashFieldOffset));
326 __ And(at, hash, Operand(Name::kContainsCachedArrayIndexMask)); 326 __ And(at, hash, Operand(Name::kContainsCachedArrayIndexMask));
327 __ Branch(index_string, eq, at, Operand(zero_reg)); 327 __ Branch(index_string, eq, at, Operand(zero_reg));
328 328
329 // Is the string internalized? 329 // Is the string internalized? We know it's a string, so a single
330 // bit test is enough.
330 // map: key map 331 // map: key map
331 __ lbu(hash, FieldMemOperand(map, Map::kInstanceTypeOffset)); 332 __ lbu(hash, FieldMemOperand(map, Map::kInstanceTypeOffset));
332 STATIC_ASSERT(kInternalizedTag != 0); 333 STATIC_ASSERT(kInternalizedTag != 0);
333 __ And(at, hash, Operand(kIsInternalizedMask)); 334 __ And(at, hash, Operand(kIsInternalizedMask));
334 __ Branch(not_unique, eq, at, Operand(zero_reg)); 335 __ Branch(not_unique, eq, at, Operand(zero_reg));
335 336
336 __ bind(&unique); 337 __ bind(&unique);
337 } 338 }
338 339
339 340
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 } else { 1704 } else {
1704 ASSERT(Assembler::IsBne(branch_instr)); 1705 ASSERT(Assembler::IsBne(branch_instr));
1705 patcher.ChangeBranchCondition(eq); 1706 patcher.ChangeBranchCondition(eq);
1706 } 1707 }
1707 } 1708 }
1708 1709
1709 1710
1710 } } // namespace v8::internal 1711 } } // namespace v8::internal
1711 1712
1712 #endif // V8_TARGET_ARCH_MIPS 1713 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698