OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 HandleScope scope; | 1290 HandleScope scope; |
1291 ASSERT(args.length() == 1); | 1291 ASSERT(args.length() == 1); |
1292 CONVERT_ARG_CHECKED(JSObject, holder, 0); | 1292 CONVERT_ARG_CHECKED(JSObject, holder, 0); |
1293 | 1293 |
1294 InstallBuiltin(holder, "pop", Builtins::ArrayPop, CompileArrayPopCall); | 1294 InstallBuiltin(holder, "pop", Builtins::ArrayPop, CompileArrayPopCall); |
1295 InstallBuiltin(holder, "push", Builtins::ArrayPush, CompileArrayPushCall); | 1295 InstallBuiltin(holder, "push", Builtins::ArrayPush, CompileArrayPushCall); |
1296 InstallBuiltin(holder, "shift", Builtins::ArrayShift); | 1296 InstallBuiltin(holder, "shift", Builtins::ArrayShift); |
1297 InstallBuiltin(holder, "unshift", Builtins::ArrayUnshift); | 1297 InstallBuiltin(holder, "unshift", Builtins::ArrayUnshift); |
1298 InstallBuiltin(holder, "slice", Builtins::ArraySlice); | 1298 InstallBuiltin(holder, "slice", Builtins::ArraySlice); |
1299 InstallBuiltin(holder, "splice", Builtins::ArraySplice); | 1299 InstallBuiltin(holder, "splice", Builtins::ArraySplice); |
| 1300 InstallBuiltin(holder, "concat", Builtins::ArrayConcat); |
1300 | 1301 |
1301 return *holder; | 1302 return *holder; |
1302 } | 1303 } |
1303 | 1304 |
1304 | 1305 |
1305 static Object* Runtime_MaterializeRegExpLiteral(Arguments args) { | 1306 static Object* Runtime_MaterializeRegExpLiteral(Arguments args) { |
1306 HandleScope scope; | 1307 HandleScope scope; |
1307 ASSERT(args.length() == 4); | 1308 ASSERT(args.length() == 4); |
1308 CONVERT_ARG_CHECKED(FixedArray, literals, 0); | 1309 CONVERT_ARG_CHECKED(FixedArray, literals, 0); |
1309 int index = Smi::cast(args[1])->value(); | 1310 int index = Smi::cast(args[1])->value(); |
(...skipping 7807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9117 } else { | 9118 } else { |
9118 // Handle last resort GC and make sure to allow future allocations | 9119 // Handle last resort GC and make sure to allow future allocations |
9119 // to grow the heap without causing GCs (if possible). | 9120 // to grow the heap without causing GCs (if possible). |
9120 Counters::gc_last_resort_from_js.Increment(); | 9121 Counters::gc_last_resort_from_js.Increment(); |
9121 Heap::CollectAllGarbage(false); | 9122 Heap::CollectAllGarbage(false); |
9122 } | 9123 } |
9123 } | 9124 } |
9124 | 9125 |
9125 | 9126 |
9126 } } // namespace v8::internal | 9127 } } // namespace v8::internal |
OLD | NEW |