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

Side by Side Diff: src/heap.cc

Issue 6170001: Direct call api functions (arm implementation) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 JSEntryStub stub; 1923 JSEntryStub stub;
1924 set_js_entry_code(*stub.GetCode()); 1924 set_js_entry_code(*stub.GetCode());
1925 } 1925 }
1926 1926
1927 1927
1928 void Heap::CreateJSConstructEntryStub() { 1928 void Heap::CreateJSConstructEntryStub() {
1929 JSConstructEntryStub stub; 1929 JSConstructEntryStub stub;
1930 set_js_construct_entry_code(*stub.GetCode()); 1930 set_js_construct_entry_code(*stub.GetCode());
1931 } 1931 }
1932 1932
1933 #if V8_TARGET_ARCH_ARM
1934 void Heap::CreateDirectCEntryStub() {
1935 DirectCEntryStub stub;
1936 set_direct_c_entry_code(*stub.GetCode());
1937 }
1938 #endif
1933 1939
1934 void Heap::CreateFixedStubs() { 1940 void Heap::CreateFixedStubs() {
1935 // Here we create roots for fixed stubs. They are needed at GC 1941 // Here we create roots for fixed stubs. They are needed at GC
1936 // for cooking and uncooking (check out frames.cc). 1942 // for cooking and uncooking (check out frames.cc).
1937 // The eliminates the need for doing dictionary lookup in the 1943 // The eliminates the need for doing dictionary lookup in the
1938 // stub cache for these stubs. 1944 // stub cache for these stubs.
1939 HandleScope scope; 1945 HandleScope scope;
1940 // gcc-4.4 has problem generating correct code of following snippet: 1946 // gcc-4.4 has problem generating correct code of following snippet:
1941 // { CEntryStub stub; 1947 // { CEntryStub stub;
1942 // c_entry_code_ = *stub.GetCode(); 1948 // c_entry_code_ = *stub.GetCode();
1943 // } 1949 // }
1944 // { DebuggerStatementStub stub; 1950 // { DebuggerStatementStub stub;
1945 // debugger_statement_code_ = *stub.GetCode(); 1951 // debugger_statement_code_ = *stub.GetCode();
1946 // } 1952 // }
1947 // To workaround the problem, make separate functions without inlining. 1953 // To workaround the problem, make separate functions without inlining.
1948 Heap::CreateCEntryStub(); 1954 Heap::CreateCEntryStub();
1949 Heap::CreateJSEntryStub(); 1955 Heap::CreateJSEntryStub();
1950 Heap::CreateJSConstructEntryStub(); 1956 Heap::CreateJSConstructEntryStub();
1951 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP 1957 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP
1952 Heap::CreateRegExpCEntryStub(); 1958 Heap::CreateRegExpCEntryStub();
1953 #endif 1959 #endif
1960 #if V8_TARGET_ARCH_ARM
1961 Heap::CreateDirectCEntryStub();
1962 #endif
1954 } 1963 }
1955 1964
1956 1965
1957 bool Heap::CreateInitialObjects() { 1966 bool Heap::CreateInitialObjects() {
1958 Object* obj; 1967 Object* obj;
1959 1968
1960 // The -0 value must be set before NumberFromDouble works. 1969 // The -0 value must be set before NumberFromDouble works.
1961 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); 1970 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED);
1962 if (!maybe_obj->ToObject(&obj)) return false; 1971 if (!maybe_obj->ToObject(&obj)) return false;
1963 } 1972 }
(...skipping 3572 matching lines...) Expand 10 before | Expand all | Expand 10 after
5536 void ExternalStringTable::TearDown() { 5545 void ExternalStringTable::TearDown() {
5537 new_space_strings_.Free(); 5546 new_space_strings_.Free();
5538 old_space_strings_.Free(); 5547 old_space_strings_.Free();
5539 } 5548 }
5540 5549
5541 5550
5542 List<Object*> ExternalStringTable::new_space_strings_; 5551 List<Object*> ExternalStringTable::new_space_strings_;
5543 List<Object*> ExternalStringTable::old_space_strings_; 5552 List<Object*> ExternalStringTable::old_space_strings_;
5544 5553
5545 } } // namespace v8::internal 5554 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698