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

Unified Diff: src/builtins.cc

Issue 3181013: Array builtins: add inline modifier to help gcc. (Closed)
Patch Set: Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index 437bc1e6c1531de9e006c9d3fca766ef673d9e1b..eedee9f44784f1abaf3be9d130f0c5883ac9a276 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -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;
JSArray* array = JSArray::cast(receiver);
HeapObject* elms = HeapObject::cast(array->elements());
@@ -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();
JSObject* array_proto =
JSObject::cast(global_context->array_function()->prototype());
« 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