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

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, 10 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
« src/assembler.cc ('K') | « src/heap.h ('k') | src/top.h » ('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 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 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 JSEntryStub stub; 1929 JSEntryStub stub;
1930 set_js_entry_code(*stub.GetCode()); 1930 set_js_entry_code(*stub.GetCode());
1931 } 1931 }
1932 1932
1933 1933
1934 void Heap::CreateJSConstructEntryStub() { 1934 void Heap::CreateJSConstructEntryStub() {
1935 JSConstructEntryStub stub; 1935 JSConstructEntryStub stub;
1936 set_js_construct_entry_code(*stub.GetCode()); 1936 set_js_construct_entry_code(*stub.GetCode());
1937 } 1937 }
1938 1938
1939 #if V8_TARGET_ARCH_ARM
1940 void Heap::CreateDirectCEntryStub() {
1941 DirectCEntryStub stub;
1942 set_direct_c_entry_code(*stub.GetCode());
1943 }
1944 #endif
1939 1945
1940 void Heap::CreateFixedStubs() { 1946 void Heap::CreateFixedStubs() {
1941 // Here we create roots for fixed stubs. They are needed at GC 1947 // Here we create roots for fixed stubs. They are needed at GC
1942 // for cooking and uncooking (check out frames.cc). 1948 // for cooking and uncooking (check out frames.cc).
1943 // The eliminates the need for doing dictionary lookup in the 1949 // The eliminates the need for doing dictionary lookup in the
1944 // stub cache for these stubs. 1950 // stub cache for these stubs.
1945 HandleScope scope; 1951 HandleScope scope;
1946 // gcc-4.4 has problem generating correct code of following snippet: 1952 // gcc-4.4 has problem generating correct code of following snippet:
1947 // { CEntryStub stub; 1953 // { CEntryStub stub;
1948 // c_entry_code_ = *stub.GetCode(); 1954 // c_entry_code_ = *stub.GetCode();
1949 // } 1955 // }
1950 // { DebuggerStatementStub stub; 1956 // { DebuggerStatementStub stub;
1951 // debugger_statement_code_ = *stub.GetCode(); 1957 // debugger_statement_code_ = *stub.GetCode();
1952 // } 1958 // }
1953 // To workaround the problem, make separate functions without inlining. 1959 // To workaround the problem, make separate functions without inlining.
1954 Heap::CreateCEntryStub(); 1960 Heap::CreateCEntryStub();
1955 Heap::CreateJSEntryStub(); 1961 Heap::CreateJSEntryStub();
1956 Heap::CreateJSConstructEntryStub(); 1962 Heap::CreateJSConstructEntryStub();
1957 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP 1963 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP
1958 Heap::CreateRegExpCEntryStub(); 1964 Heap::CreateRegExpCEntryStub();
1959 #endif 1965 #endif
1966 #if V8_TARGET_ARCH_ARM
1967 Heap::CreateDirectCEntryStub();
1968 #endif
1960 } 1969 }
1961 1970
1962 1971
1963 bool Heap::CreateInitialObjects() { 1972 bool Heap::CreateInitialObjects() {
1964 Object* obj; 1973 Object* obj;
1965 1974
1966 // The -0 value must be set before NumberFromDouble works. 1975 // The -0 value must be set before NumberFromDouble works.
1967 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); 1976 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED);
1968 if (!maybe_obj->ToObject(&obj)) return false; 1977 if (!maybe_obj->ToObject(&obj)) return false;
1969 } 1978 }
(...skipping 3575 matching lines...) Expand 10 before | Expand all | Expand 10 after
5545 void ExternalStringTable::TearDown() { 5554 void ExternalStringTable::TearDown() {
5546 new_space_strings_.Free(); 5555 new_space_strings_.Free();
5547 old_space_strings_.Free(); 5556 old_space_strings_.Free();
5548 } 5557 }
5549 5558
5550 5559
5551 List<Object*> ExternalStringTable::new_space_strings_; 5560 List<Object*> ExternalStringTable::new_space_strings_;
5552 List<Object*> ExternalStringTable::old_space_strings_; 5561 List<Object*> ExternalStringTable::old_space_strings_;
5553 5562
5554 } } // namespace v8::internal 5563 } } // namespace v8::internal
OLDNEW
« src/assembler.cc ('K') | « src/heap.h ('k') | src/top.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698