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

Side by Side Diff: src/runtime.cc

Issue 335027: Reverted 3130-3131 since they don't work on mac. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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/stub-cache.cc » ('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-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 4779 matching lines...) Expand 10 before | Expand all | Expand 10 after
4790 4790
4791 4791
4792 static Object* Runtime_ReThrow(Arguments args) { 4792 static Object* Runtime_ReThrow(Arguments args) {
4793 HandleScope scope; 4793 HandleScope scope;
4794 ASSERT(args.length() == 1); 4794 ASSERT(args.length() == 1);
4795 4795
4796 return Top::ReThrow(args[0]); 4796 return Top::ReThrow(args[0]);
4797 } 4797 }
4798 4798
4799 4799
4800 static Object* Runtime_PromoteScheduledException(Arguments args) {
4801 ASSERT_EQ(0, args.length());
4802 return Top::PromoteScheduledException();
4803 }
4804
4805
4806 static Object* Runtime_ThrowReferenceError(Arguments args) { 4800 static Object* Runtime_ThrowReferenceError(Arguments args) {
4807 HandleScope scope; 4801 HandleScope scope;
4808 ASSERT(args.length() == 1); 4802 ASSERT(args.length() == 1);
4809 4803
4810 Handle<Object> name(args[0]); 4804 Handle<Object> name(args[0]);
4811 Handle<Object> reference_error = 4805 Handle<Object> reference_error =
4812 Factory::NewReferenceError("not_defined", HandleVector(&name, 1)); 4806 Factory::NewReferenceError("not_defined", HandleVector(&name, 1));
4813 return Top::Throw(*reference_error); 4807 return Top::Throw(*reference_error);
4814 } 4808 }
4815 4809
(...skipping 2941 matching lines...) Expand 10 before | Expand all | Expand 10 after
7757 ASSERT(args.length() == 2); 7751 ASSERT(args.length() == 2);
7758 OS::PrintError("abort: %s\n", reinterpret_cast<char*>(args[0]) + 7752 OS::PrintError("abort: %s\n", reinterpret_cast<char*>(args[0]) +
7759 Smi::cast(args[1])->value()); 7753 Smi::cast(args[1])->value());
7760 Top::PrintStack(); 7754 Top::PrintStack();
7761 OS::Abort(); 7755 OS::Abort();
7762 UNREACHABLE(); 7756 UNREACHABLE();
7763 return NULL; 7757 return NULL;
7764 } 7758 }
7765 7759
7766 7760
7767 static Object* Runtime_DeleteHandleScopeExtensions(Arguments args) {
7768 ASSERT(args.length() == 0);
7769 HandleScope::DeleteExtensions();
7770 return Heap::undefined_value();
7771 }
7772
7773
7774 #ifdef DEBUG 7761 #ifdef DEBUG
7775 // ListNatives is ONLY used by the fuzz-natives.js in debug mode 7762 // ListNatives is ONLY used by the fuzz-natives.js in debug mode
7776 // Exclude the code in release mode. 7763 // Exclude the code in release mode.
7777 static Object* Runtime_ListNatives(Arguments args) { 7764 static Object* Runtime_ListNatives(Arguments args) {
7778 ASSERT(args.length() == 0); 7765 ASSERT(args.length() == 0);
7779 HandleScope scope; 7766 HandleScope scope;
7780 Handle<JSArray> result = Factory::NewJSArray(0); 7767 Handle<JSArray> result = Factory::NewJSArray(0);
7781 int index = 0; 7768 int index = 0;
7782 #define ADD_ENTRY(Name, argc, ressize) \ 7769 #define ADD_ENTRY(Name, argc, ressize) \
7783 { \ 7770 { \
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
7852 } else { 7839 } else {
7853 // Handle last resort GC and make sure to allow future allocations 7840 // Handle last resort GC and make sure to allow future allocations
7854 // to grow the heap without causing GCs (if possible). 7841 // to grow the heap without causing GCs (if possible).
7855 Counters::gc_last_resort_from_js.Increment(); 7842 Counters::gc_last_resort_from_js.Increment();
7856 Heap::CollectAllGarbage(false); 7843 Heap::CollectAllGarbage(false);
7857 } 7844 }
7858 } 7845 }
7859 7846
7860 7847
7861 } } // namespace v8::internal 7848 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698