Commit 03e8d318 authored by vitalyr@chromium.org's avatar vitalyr@chromium.org

Array builtins: add inline modifier to help gcc.

Review URL: http://codereview.chromium.org/3181013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5279 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 102db47c
...@@ -352,7 +352,7 @@ static bool ArrayPrototypeHasNoElements(Context* global_context, ...@@ -352,7 +352,7 @@ static bool ArrayPrototypeHasNoElements(Context* global_context,
} }
static Object* EnsureJSArrayWithWritableFastElements(Object* receiver) { static inline Object* EnsureJSArrayWithWritableFastElements(Object* receiver) {
if (!receiver->IsJSArray()) return NULL; if (!receiver->IsJSArray()) return NULL;
JSArray* array = JSArray::cast(receiver); JSArray* array = JSArray::cast(receiver);
HeapObject* elms = HeapObject::cast(array->elements()); HeapObject* elms = HeapObject::cast(array->elements());
...@@ -364,7 +364,7 @@ static Object* EnsureJSArrayWithWritableFastElements(Object* receiver) { ...@@ -364,7 +364,7 @@ static Object* EnsureJSArrayWithWritableFastElements(Object* receiver) {
} }
static bool IsJSArrayFastElementMovingAllowed(JSArray* receiver) { static inline bool IsJSArrayFastElementMovingAllowed(JSArray* receiver) {
Context* global_context = Top::context()->global_context(); Context* global_context = Top::context()->global_context();
JSObject* array_proto = JSObject* array_proto =
JSObject::cast(global_context->array_function()->prototype()); JSObject::cast(global_context->array_function()->prototype());
......
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