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

Side by Side Diff: src/x87/macro-assembler-x87.h

Issue 2523473002: [cleanup] Drop handwritten KeyedStoreIC code (Closed)
Patch Set: rebased Created 4 years 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
« no previous file with comments | « src/x87/codegen-x87.cc ('k') | src/x87/macro-assembler-x87.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // Leave the current exit frame. Expects the return value in 256 // Leave the current exit frame. Expects the return value in
257 // register eax (untouched). 257 // register eax (untouched).
258 void LeaveApiExitFrame(bool restore_context); 258 void LeaveApiExitFrame(bool restore_context);
259 259
260 // Find the function context up the context chain. 260 // Find the function context up the context chain.
261 void LoadContext(Register dst, int context_chain_length); 261 void LoadContext(Register dst, int context_chain_length);
262 262
263 // Load the global proxy from the current context. 263 // Load the global proxy from the current context.
264 void LoadGlobalProxy(Register dst); 264 void LoadGlobalProxy(Register dst);
265 265
266 // Conditionally load the cached Array transitioned map of type
267 // transitioned_kind from the native context if the map in register
268 // map_in_out is the cached Array map in the native context of
269 // expected_kind.
270 void LoadTransitionedArrayMapConditional(ElementsKind expected_kind,
271 ElementsKind transitioned_kind,
272 Register map_in_out,
273 Register scratch,
274 Label* no_map_match);
275
276 // Load the global function with the given index. 266 // Load the global function with the given index.
277 void LoadGlobalFunction(int index, Register function); 267 void LoadGlobalFunction(int index, Register function);
278 268
279 // Load the initial map from the global function. The registers 269 // Load the initial map from the global function. The registers
280 // function and map can be the same. 270 // function and map can be the same.
281 void LoadGlobalFunctionInitialMap(Register function, Register map); 271 void LoadGlobalFunctionInitialMap(Register function, Register map);
282 272
283 // Push and pop the registers that can hold pointers. 273 // Push and pop the registers that can hold pointers.
284 void PushSafepointRegisters() { pushad(); } 274 void PushSafepointRegisters() { pushad(); }
285 void PopSafepointRegisters() { popad(); } 275 void PopSafepointRegisters() { popad(); }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 void SafeMove(Register dst, const Immediate& x); 364 void SafeMove(Register dst, const Immediate& x);
375 void SafePush(const Immediate& x); 365 void SafePush(const Immediate& x);
376 366
377 // Compare object type for heap object. 367 // Compare object type for heap object.
378 // Incoming register is heap_object and outgoing register is map. 368 // Incoming register is heap_object and outgoing register is map.
379 void CmpObjectType(Register heap_object, InstanceType type, Register map); 369 void CmpObjectType(Register heap_object, InstanceType type, Register map);
380 370
381 // Compare instance type for map. 371 // Compare instance type for map.
382 void CmpInstanceType(Register map, InstanceType type); 372 void CmpInstanceType(Register map, InstanceType type);
383 373
384 // Check if a map for a JSObject indicates that the object can have both smi
385 // and HeapObject elements. Jump to the specified label if it does not.
386 void CheckFastObjectElements(Register map, Label* fail,
387 Label::Distance distance = Label::kFar);
388
389 // Check if a map for a JSObject indicates that the object has fast smi only
390 // elements. Jump to the specified label if it does not.
391 void CheckFastSmiElements(Register map, Label* fail,
392 Label::Distance distance = Label::kFar);
393
394 // Check to see if maybe_number can be stored as a double in
395 // FastDoubleElements. If it can, store it at the index specified by key in
396 // the FastDoubleElements array elements, otherwise jump to fail.
397 void StoreNumberToDoubleElements(Register maybe_number, Register elements,
398 Register key, Register scratch, Label* fail,
399 int offset = 0);
400
401 // Compare an object's map with the specified map. 374 // Compare an object's map with the specified map.
402 void CompareMap(Register obj, Handle<Map> map); 375 void CompareMap(Register obj, Handle<Map> map);
403 376
404 // Check if the map of an object is equal to a specified map and branch to 377 // Check if the map of an object is equal to a specified map and branch to
405 // label if not. Skip the smi check if not required (object is known to be a 378 // label if not. Skip the smi check if not required (object is known to be a
406 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match 379 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match
407 // against maps that are ElementsKind transition maps of the specified map. 380 // against maps that are ElementsKind transition maps of the specified map.
408 void CheckMap(Register obj, Handle<Map> map, Label* fail, 381 void CheckMap(Register obj, Handle<Map> map, Label* fail,
409 SmiCheckType smi_check_type); 382 SmiCheckType smi_check_type);
410 383
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 // AllocationMemento support. Arrays may have an associated 888 // AllocationMemento support. Arrays may have an associated
916 // AllocationMemento object that can be checked for in order to pretransition 889 // AllocationMemento object that can be checked for in order to pretransition
917 // to another type. 890 // to another type.
918 // On entry, receiver_reg should point to the array object. 891 // On entry, receiver_reg should point to the array object.
919 // scratch_reg gets clobbered. 892 // scratch_reg gets clobbered.
920 // If allocation info is present, conditional code is set to equal. 893 // If allocation info is present, conditional code is set to equal.
921 void TestJSArrayForAllocationMemento(Register receiver_reg, 894 void TestJSArrayForAllocationMemento(Register receiver_reg,
922 Register scratch_reg, 895 Register scratch_reg,
923 Label* no_memento_found); 896 Label* no_memento_found);
924 897
925 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg,
926 Register scratch_reg,
927 Label* memento_found) {
928 Label no_memento_found;
929 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg,
930 &no_memento_found);
931 j(equal, memento_found);
932 bind(&no_memento_found);
933 }
934
935 // Jumps to found label if a prototype map has dictionary elements.
936 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0,
937 Register scratch1, Label* found);
938
939 private: 898 private:
940 bool generating_stub_; 899 bool generating_stub_;
941 bool has_frame_; 900 bool has_frame_;
942 // This handle will be patched with the code object on installation. 901 // This handle will be patched with the code object on installation.
943 Handle<Object> code_object_; 902 Handle<Object> code_object_;
944 903
945 // Helper functions for generating invokes. 904 // Helper functions for generating invokes.
946 void InvokePrologue(const ParameterCount& expected, 905 void InvokePrologue(const ParameterCount& expected,
947 const ParameterCount& actual, Label* done, 906 const ParameterCount& actual, Label* done,
948 bool* definitely_mismatches, InvokeFlag flag, 907 bool* definitely_mismatches, InvokeFlag flag,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 inline Operand NativeContextOperand() { 991 inline Operand NativeContextOperand() {
1033 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX); 992 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX);
1034 } 993 }
1035 994
1036 #define ACCESS_MASM(masm) masm-> 995 #define ACCESS_MASM(masm) masm->
1037 996
1038 } // namespace internal 997 } // namespace internal
1039 } // namespace v8 998 } // namespace v8
1040 999
1041 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1000 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/x87/codegen-x87.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698