Commit c3514589 authored by ager@chromium.org's avatar ager@chromium.org

Add missing files accidentally left out on last commit.


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4844 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 89ffd6c2
...@@ -1199,6 +1199,21 @@ void MacroAssembler::CheckMap(Register obj, ...@@ -1199,6 +1199,21 @@ void MacroAssembler::CheckMap(Register obj,
} }
void MacroAssembler::CheckMap(Register obj,
Register scratch,
Heap::RootListIndex index,
Label* fail,
bool is_heap_object) {
if (!is_heap_object) {
BranchOnSmi(obj, fail);
}
ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset));
LoadRoot(ip, index);
cmp(scratch, ip);
b(ne, fail);
}
void MacroAssembler::TryGetFunctionPrototype(Register function, void MacroAssembler::TryGetFunctionPrototype(Register function,
Register result, Register result,
Register scratch, Register scratch,
......
...@@ -401,15 +401,23 @@ class MacroAssembler: public Assembler { ...@@ -401,15 +401,23 @@ class MacroAssembler: public Assembler {
InstanceType type); InstanceType type);
// Check if the map of an object is equal to a specified map and // Check if the map of an object is equal to a specified map (either
// branch to label if not. Skip the smi check if not required // given directly or as an index into the root list) and branch to
// (object is known to be a heap object) // label if not. Skip the smi check if not required (object is known
// to be a heap object)
void CheckMap(Register obj, void CheckMap(Register obj,
Register scratch, Register scratch,
Handle<Map> map, Handle<Map> map,
Label* fail, Label* fail,
bool is_heap_object); bool is_heap_object);
void CheckMap(Register obj,
Register scratch,
Heap::RootListIndex index,
Label* fail,
bool is_heap_object);
// Load and check the instance type of an object for being a string. // Load and check the instance type of an object for being a string.
// Loads the type into the second argument register. // Loads the type into the second argument register.
// Returns a condition that will be enabled if the object was a string. // Returns a condition that will be enabled if the object was a string.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment