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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 14597006: MIPS: Before comparing input with a constant smi in GenerateRecordCallTarget(), make sure the input… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 | 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 5102 matching lines...) Expand 10 before | Expand all | Expand 10 after
5113 __ Branch(&done, eq, a3, Operand(a1)); 5113 __ Branch(&done, eq, a3, Operand(a1));
5114 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 5114 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
5115 __ Branch(&done, eq, a3, Operand(at)); 5115 __ Branch(&done, eq, a3, Operand(at));
5116 5116
5117 // Special handling of the Array() function, which caches not only the 5117 // Special handling of the Array() function, which caches not only the
5118 // monomorphic Array function but the initial ElementsKind with special 5118 // monomorphic Array function but the initial ElementsKind with special
5119 // sentinels 5119 // sentinels
5120 Handle<Object> terminal_kind_sentinel = 5120 Handle<Object> terminal_kind_sentinel =
5121 TypeFeedbackCells::MonomorphicArraySentinel(masm->isolate(), 5121 TypeFeedbackCells::MonomorphicArraySentinel(masm->isolate(),
5122 LAST_FAST_ELEMENTS_KIND); 5122 LAST_FAST_ELEMENTS_KIND);
5123 __ JumpIfNotSmi(a3, &miss);
5123 __ Branch(&miss, gt, a3, Operand(terminal_kind_sentinel)); 5124 __ Branch(&miss, gt, a3, Operand(terminal_kind_sentinel));
5124 // Make sure the function is the Array() function 5125 // Make sure the function is the Array() function
5125 __ LoadArrayFunction(a3); 5126 __ LoadArrayFunction(a3);
5126 __ Branch(&megamorphic, ne, a1, Operand(a3)); 5127 __ Branch(&megamorphic, ne, a1, Operand(a3));
5127 __ jmp(&done); 5128 __ jmp(&done);
5128 5129
5129 __ bind(&miss); 5130 __ bind(&miss);
5130 5131
5131 // A monomorphic miss (i.e, here the cache is not uninitialized) goes 5132 // A monomorphic miss (i.e, here the cache is not uninitialized) goes
5132 // megamorphic. 5133 // megamorphic.
(...skipping 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after
7767 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 7768 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
7768 } 7769 }
7769 } 7770 }
7770 7771
7771 7772
7772 #undef __ 7773 #undef __
7773 7774
7774 } } // namespace v8::internal 7775 } } // namespace v8::internal
7775 7776
7776 #endif // V8_TARGET_ARCH_MIPS 7777 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698