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

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

Issue 71163006: Merge bleeding_edge r17376:17693. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix all.gyp Created 7 years, 1 month 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/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // MacroAssembler implements a collection of frequently used macros. 55 // MacroAssembler implements a collection of frequently used macros.
56 class MacroAssembler: public Assembler { 56 class MacroAssembler: public Assembler {
57 public: 57 public:
58 // The isolate parameter can be NULL if the macro assembler should 58 // The isolate parameter can be NULL if the macro assembler should
59 // not use isolate-dependent functionality. In this case, it's the 59 // not use isolate-dependent functionality. In this case, it's the
60 // responsibility of the caller to never invoke such function on the 60 // responsibility of the caller to never invoke such function on the
61 // macro assembler. 61 // macro assembler.
62 MacroAssembler(Isolate* isolate, void* buffer, int size); 62 MacroAssembler(Isolate* isolate, void* buffer, int size);
63 63
64 void Load(Register dst, const Operand& src, Representation r);
65 void Store(Register src, const Operand& dst, Representation r);
66
64 // Operations on roots in the root-array. 67 // Operations on roots in the root-array.
65 void LoadRoot(Register destination, Heap::RootListIndex index); 68 void LoadRoot(Register destination, Heap::RootListIndex index);
66 void StoreRoot(Register source, Register scratch, Heap::RootListIndex index); 69 void StoreRoot(Register source, Register scratch, Heap::RootListIndex index);
67 void CompareRoot(Register with, Register scratch, Heap::RootListIndex index); 70 void CompareRoot(Register with, Register scratch, Heap::RootListIndex index);
68 // These methods can only be used with constant roots (i.e. non-writable 71 // These methods can only be used with constant roots (i.e. non-writable
69 // and not in new space). 72 // and not in new space).
70 void CompareRoot(Register with, Heap::RootListIndex index); 73 void CompareRoot(Register with, Heap::RootListIndex index);
71 void CompareRoot(const Operand& with, Heap::RootListIndex index); 74 void CompareRoot(const Operand& with, Heap::RootListIndex index);
72 75
73 // --------------------------------------------------------------------------- 76 // ---------------------------------------------------------------------------
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 // the FastDoubleElements array elements, otherwise jump to fail. 413 // the FastDoubleElements array elements, otherwise jump to fail.
411 void StoreNumberToDoubleElements(Register maybe_number, 414 void StoreNumberToDoubleElements(Register maybe_number,
412 Register elements, 415 Register elements,
413 Register key, 416 Register key,
414 Register scratch1, 417 Register scratch1,
415 XMMRegister scratch2, 418 XMMRegister scratch2,
416 Label* fail, 419 Label* fail,
417 bool specialize_for_processor, 420 bool specialize_for_processor,
418 int offset = 0); 421 int offset = 0);
419 422
420 // Compare an object's map with the specified map and its transitioned 423 // Compare an object's map with the specified map.
421 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. FLAGS are set with 424 void CompareMap(Register obj, Handle<Map> map);
422 // result of map compare. If multiple map compares are required, the compare
423 // sequences branches to early_success.
424 void CompareMap(Register obj,
425 Handle<Map> map,
426 Label* early_success);
427 425
428 // Check if the map of an object is equal to a specified map and branch to 426 // Check if the map of an object is equal to a specified map and branch to
429 // label if not. Skip the smi check if not required (object is known to be a 427 // label if not. Skip the smi check if not required (object is known to be a
430 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match 428 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match
431 // against maps that are ElementsKind transition maps of the specified map. 429 // against maps that are ElementsKind transition maps of the specified map.
432 void CheckMap(Register obj, 430 void CheckMap(Register obj,
433 Handle<Map> map, 431 Handle<Map> map,
434 Label* fail, 432 Label* fail,
435 SmiCheckType smi_check_type); 433 SmiCheckType smi_check_type);
436 434
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg, 966 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg,
969 Register scratch_reg, 967 Register scratch_reg,
970 Label* memento_found) { 968 Label* memento_found) {
971 Label no_memento_found; 969 Label no_memento_found;
972 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, 970 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg,
973 &no_memento_found); 971 &no_memento_found);
974 j(equal, memento_found); 972 j(equal, memento_found);
975 bind(&no_memento_found); 973 bind(&no_memento_found);
976 } 974 }
977 975
976 // Jumps to found label if a prototype map has dictionary elements.
977 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0,
978 Register scratch1, Label* found);
979
978 private: 980 private:
979 bool generating_stub_; 981 bool generating_stub_;
980 bool allow_stub_calls_; 982 bool allow_stub_calls_;
981 bool has_frame_; 983 bool has_frame_;
982 // This handle will be patched with the code object on installation. 984 // This handle will be patched with the code object on installation.
983 Handle<Object> code_object_; 985 Handle<Object> code_object_;
984 986
985 // Helper functions for generating invokes. 987 // Helper functions for generating invokes.
986 void InvokePrologue(const ParameterCount& expected, 988 void InvokePrologue(const ParameterCount& expected,
987 const ParameterCount& actual, 989 const ParameterCount& actual,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 } \ 1116 } \
1115 masm-> 1117 masm->
1116 #else 1118 #else
1117 #define ACCESS_MASM(masm) masm-> 1119 #define ACCESS_MASM(masm) masm->
1118 #endif 1120 #endif
1119 1121
1120 1122
1121 } } // namespace v8::internal 1123 } } // namespace v8::internal
1122 1124
1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1125 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698