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

Side by Side Diff: src/runtime.cc

Issue 17203: Periodic merge from bleeding_edge to experimental code generator... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/runtime.h ('k') | src/string.js » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 5822 matching lines...) Expand 10 before | Expand all | Expand 10 after
5833 SetElement(pair, 1, Handle<Smi>(Smi::FromInt(argc))); \ 5833 SetElement(pair, 1, Handle<Smi>(Smi::FromInt(argc))); \
5834 SetElement(result, index++, pair); \ 5834 SetElement(result, index++, pair); \
5835 } 5835 }
5836 RUNTIME_FUNCTION_LIST(ADD_ENTRY) 5836 RUNTIME_FUNCTION_LIST(ADD_ENTRY)
5837 #undef ADD_ENTRY 5837 #undef ADD_ENTRY
5838 return *result; 5838 return *result;
5839 } 5839 }
5840 #endif 5840 #endif
5841 5841
5842 5842
5843 static Object* Runtime_Log(Arguments args) {
5844 ASSERT(args.length() == 2);
5845 String* format = String::cast(args[0]);
5846 Vector<const char> chars = format->ToAsciiVector();
5847 JSArray* elms = JSArray::cast(args[1]);
5848 Logger::LogRuntime(chars, elms);
5849 return Heap::undefined_value();
5850 }
5851
5852
5843 static Object* Runtime_IS_VAR(Arguments args) { 5853 static Object* Runtime_IS_VAR(Arguments args) {
5844 UNREACHABLE(); // implemented as macro in the parser 5854 UNREACHABLE(); // implemented as macro in the parser
5845 return NULL; 5855 return NULL;
5846 } 5856 }
5847 5857
5848 5858
5849 // ---------------------------------------------------------------------------- 5859 // ----------------------------------------------------------------------------
5850 // Implementation of Runtime 5860 // Implementation of Runtime
5851 5861
5852 #define F(name, nargs) \ 5862 #define F(name, nargs) \
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
5886 } else { 5896 } else {
5887 // Handle last resort GC and make sure to allow future allocations 5897 // Handle last resort GC and make sure to allow future allocations
5888 // to grow the heap without causing GCs (if possible). 5898 // to grow the heap without causing GCs (if possible).
5889 Counters::gc_last_resort_from_js.Increment(); 5899 Counters::gc_last_resort_from_js.Increment();
5890 Heap::CollectAllGarbage(); 5900 Heap::CollectAllGarbage();
5891 } 5901 }
5892 } 5902 }
5893 5903
5894 5904
5895 } } // namespace v8::internal 5905 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.h ('k') | src/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698